#Specify the version being used aswell as the language cmake_minimum_required(VERSION 2.8.11) #Name your project here project(netMets) #set the module directory set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}") #set up CUDA find_package(CUDA REQUIRED) #find the STIM library find_package(STIM REQUIRED) #find BOOST find_package(Boost REQUIRED) #find the pthreads package find_package(Threads) #find the X11 package find_package(X11) #find the Approximate Nearest Neighbor Library find_package(ANN REQUIRED) include_directories( ${STIM_INCLUDE_DIRS} ${ANN_INCLUDE_DIR} ${Boost_INCLUDE_DIR} ) #Assign source files to the appropriate variables file(GLOB SRC_CPP "*.cpp") file(GLOB SRC_H "*.h") file(GLOB SRC_CU "*.cu") file(GLOB SRC_CUH "*.cuh") #create an executable file cuda_add_executable(netmets ${SRC_H} ${SRC_CPP} ${SRC_CU} ${SRC_CUH} ) #set the link libraries target_link_libraries(netmets #${CUDA_cufft_LIBRARY} #${CUDA_cublas_LIBRARY} ${CMAKE_THREAD_LIBS_INIT} ${ANN_LIBRARY} ${X11_LIBRARIES} )