Blame view

CMakeLists.txt 893 Bytes
29823d2c   David Mayerich   added source code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
  #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 OpenCV
  find_package(OpenCV REQUIRED )
  
  #find cuda
  find_package(CUDA REQUIRED)
  
  #find the pthreads package
  find_package(Threads)
  
  #find the X11 package
  find_package(X11)
  
  #include directories
  #include_directories(${CUDA_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR})
  
  #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 ${OpenCV_LIBS} 
  		  ${CUDA_cublas_LIBRARY}
  		  ${CMAKE_THREAD_LIBS_INIT}
  		  ${X11_LIBRARIES})