-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
55 lines (46 loc) · 1.66 KB
/
CMakeLists.txt
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
cmake_minimum_required(VERSION 2.4.6 FATAL_ERROR)
SET(ProjName SamplingSimulation)
set(CMAKE_CXX_FLAGS "-std=c++11 -fpermissive ${CMAKE_CXX_FLAGS}")
#uncomment for mac
#include_directories("include")
#include_directories("/usr/local/include/TooN")
#include_directories("/usr/include")
#include_directories("/opt/X11/include")
#include_directories("/opt/local/include")
#include_directories("/usr/local/include")
#link_directories("/opt/X11/lib")
#link_directories("/usr/lib/x86_64-linux-gnu")
#link_directories("/usr/local/lib/TooN")
#link_directories("/opt/local/lib")
#link_directories("/usr/local/lib")
#uncomment for ubuntu
include_directories("~/libcvd/include")
include_directories("./include")
include_directories("./include/tree")
include_directories("./TooN/include")
include_directories("/usr/include")
link_directories("/usr/lib/x86_64-linux-gnu")
link_directories("/usr/lib")
link_directories("~/libcvd/lib")
set(Samp_LIBRARIES GL GLU glut gmp CGAL CGAL_Core cvd)
SET(GCC_CGAL_COMPILE_FLAGS "-frounding-math")
#SET(GCC_CGAL_COMPILE_FLAGS "-fp-model-strict")
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_CGAL_COMPILE_FLAGS}" )
add_executable (${ProjName}
src/SamplingSim.cpp
src/World.cpp
src/FeatureTracker.cpp
src/Visualizer.cpp
src/MeshCreator.cpp
src/TSP.cpp
src/Drone.cpp
include/Drone.h
include/TSP.h
include/MeshCreator.h
include/FeatureTracker.h
include/World.h
include/Visualizer.h
include/SamplingSim.h )
target_link_libraries (${ProjName} ${Samp_LIBRARIES})
add_executable (stats src/stats.cpp)
target_link_libraries (stats ${Samp_LIBRARIES})