1 cmake_minimum_required(VERSION 3.5)
5 catkin REQUIRED COMPONENTS
9 ADD_DEFINITIONS(-DPLANNER=${PLANNER})
12 ADD_DEFINITIONS(-DTMAX=${TMAX})
15 ADD_DEFINITIONS(-DUSE_GL=1)
20 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
21 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
22 set (CMAKE_EXE_LINKER_FLAGS
23 "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
26 add_compile_options(-Wall -g -Wno-unknown-pragmas --std=c++11)
27 include_directories(incl)
28 add_executable(go_car_go
38 decision_control/rrtplanner.cc
39 decision_control/slotplanner.cc
41 perception/obstacle.cc
43 vehicle_platform/bcar.cc
44 vehicle_platform/cost.cc
45 vehicle_platform/reeds_shepp.cpp
46 vehicle_platform/steer.cc
49 target_link_libraries(go_car_go jsoncpp)
51 target_link_libraries(go_car_go SDL2)
52 target_link_libraries(go_car_go GL)
53 target_link_libraries(go_car_go GLU)
55 IF (PLANNER MATCHES "T3")
56 target_link_libraries(go_car_go pthread)
57 ENDIF (PLANNER MATCHES "T3")