-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
55 lines (37 loc) · 2.02 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 3.1.0)
project(atypical_driving)
set(CMAKE_CXX_STANDARD 14)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp -O3")
set(CMAKE_BUILD_TYPE "Release")
#set(CMAKE_BUILD_TYPE "Debug")
find_package(Eigen3 REQUIRED NO_MODULE)
include_directories(${EIGEN3_INCLUDE_DIRS})
find_package(PCL REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
find_package(catkin REQUIRED COMPONENTS roscpp sensor_msgs tf tf2
geometry_msgs octomap_msgs message_generation nav_msgs message_generation driving_msgs pcl_ros occupancy_grid_utils
)
include_directories(include ${catkin_INCLUDE_DIRS})
include_directories(${EIGEN3_INCLUDE_DIRS})
file(GLOB SNU_PLANNER_SRC src/optimization_module/*.cpp src/*.cpp src/Prediction/*.cpp src/third_party/*.cpp )
catkin_package(
LIBRARIES atypical_driving
CATKIN_DEPENDS roscpp
# DEPENDS system_lib
)
add_executable(atypical_driving_test test/main.cpp ${SNU_PLANNER_SRC} src/optimization_module/math.cpp)
target_link_libraries(atypical_driving_test ${catkin_LIBRARIES} -lstdc++fs )
add_executable(virtual_environment_generator test/virtual_environment_generator.cpp ${SNU_PLANNER_SRC})
target_link_libraries(virtual_environment_generator ${catkin_LIBRARIES} -lstdc++fs)
#add_executable(lane_tester test/LaneTest/main.cpp ${SNU_PLANNER_SRC})
#target_link_libraries(lane_tester ${catkin_LIBRARIES} -lstdc++fs)
add_executable(integration_server test/IntegrationTest/server_main.cpp ${SNU_PLANNER_SRC})
target_link_libraries(integration_server ${catkin_LIBRARIES} -lstdc++fs)
add_executable(integration_client test/IntegrationTest/client_main.cpp ${SNU_PLANNER_SRC})
target_link_libraries(integration_client ${catkin_LIBRARIES} -lstdc++fs)
add_executable(keti_client test/KetiTest/client_main.cpp ${SNU_PLANNER_SRC})
target_link_libraries(keti_client ${catkin_LIBRARIES} ${PCL_LIBRARIES})
#add_executable(tf_gimbal src/tfGimbal.cpp)
#target_link_libraries(tf_gimbal ${catkin_LIBRARIES})