-
Notifications
You must be signed in to change notification settings - Fork 7
/
CMakeLists.txt
64 lines (41 loc) · 1.29 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
56
57
58
59
60
61
62
63
64
cmake_minimum_required(VERSION 2.8.3)
project(pedsim)
#------------------ Configuration ------------------#
#Debugging (enable: ON, disable: OFF)
OPTION(SHALL_DEBUG "Enable debug features" OFF)
#Profiling (enable: ON, disable: OFF)
OPTION(SHALL_PROFILE "Enable the code profiling feature" OFF)
#Full compiler output (enable: ON, disable: OFF)
OPTION(CMAKE_VERBOSE_MAKEFILE "Full compiler output" ON)
#----------------- Compiler Flags ------------------#
#add definitions, compiler switches, etc.
ADD_DEFINITIONS(-Wall -Wunused -std=c++0x -pipe)
#debugging
IF(SHALL_DEBUG)
MESSAGE("Debugging activated")
ADD_DEFINITIONS(-O0 -DDEBUG -ggdb -g3 -rdynamic)
ELSE(SHALL_DEBUG)
MESSAGE("Debugging deactivated")
ADD_DEFINITIONS(-Os)
ENDIF(SHALL_DEBUG)
FIND_PACKAGE(catkin REQUIRED COMPONENTS
roscpp
)
FIND_PACKAGE(Boost REQUIRED)
catkin_package(
CATKIN_DEPENDS roscpp
INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/include/
LIBRARIES pedsim
)
include_directories(
${catkin_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/include/pedsim/
${roscpp_INCLUDE_DIRS}
)
set(SOURCES
src/ped_agent.cpp src/ped_angle.cpp src/ped_obstacle.cpp src/ped_scene.cpp src/ped_tree.cpp src/ped_vector.cpp src/ped_waypoint.cpp
)
add_library(pedsim ${SOURCES})
TARGET_LINK_LIBRARIES(pedsim
${BOOST_LIBRARIES}
)