#Specify the version being used aswell as the language cmake_minimum_required(VERSION 2.8) #Name your project here project(volume-spider) #set the module directory set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}") #find cuda find_package(CUDA REQUIRED) #find BOOST - particularly the filesystem libraries set(Boost_USE_STATIC_LIBS ON) find_package(Boost 1.5.0 COMPONENTS filesystem system regex REQUIRED) #find the pthreads package find_package(Threads) #find the X11 package find_package(X11) #include directories include_directories(${CUDA_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}) #Assign source files to the appropriate variables file(GLOB SRC_CPP "*.cpp") file(GLOB SRC_H "*.h") file(GLOB SRC_CU "*.cu") #create an executable file cuda_add_executable(volume-spider ${SRC_H} ${SRC_CPP} ${SRC_CU}) #set the link libraries target_link_libraries(volume-spider ${CMAKE_THREAD_LIBS_INIT} ${X11_LIBRARIES} ${Boost_LIBRARIES})