Blame view

CMakeLists.txt 1.02 KB
f51866f3   David Mayerich   initial commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  #Specify the version being used aswell as the language
  cmake_minimum_required(VERSION 2.8.11)
  
  #Name your project here
  project(pointmets)
  
  #set the module directory
  set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}")
  
  #find the STIM library
  find_package(STIM REQUIRED)
  
  #find the approximate nearest neighbor library
  find_package(ANN REQUIRED)
  
  #find the pthreads package
  find_package(Threads)
  
7aacb90f   David Mayerich   updated examples,...
19
20
21
  #find the X11 package
  find_package(X11)
  
f51866f3   David Mayerich   initial commit
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
  include_directories(
  					${STIM_INCLUDE_DIRS}
  					${ANN_INCLUDE_DIR}
  					)
  
  #Assign source files to the appropriate variables
  file(GLOB SRC_CPP "*.cpp")
  file(GLOB SRC_H "*.h")
  
  #create an executable file
  add_executable(pointmets
  				${SRC_H} 
  				${SRC_CPP} 
  				)
  
  #set the link libraries
  target_link_libraries(pointmets
  					  ${CMAKE_THREAD_LIBS_INIT} 
  					  ${ANN_LIBRARY}
7aacb90f   David Mayerich   updated examples,...
41
  					  ${X11_LIBRARIES}
f51866f3   David Mayerich   initial commit
42
43
44
45
46
47
  		  )
  
  #copy an OBJ test case
  configure_file(data/blue_gt.txt blue_gt.txt COPYONLY)
  configure_file(data/blue_t.txt blue_t.txt COPYONLY)
  configure_file(data/blue_gt.bmp blue_gt.bmp COPYONLY)