1 cmake_minimum_required(VERSION 3.7)
5 ADD_DEFINITIONS(-DPLANNER=${PLANNER})
8 ADD_DEFINITIONS(-DTMAX=${TMAX})
11 ADD_DEFINITIONS(-DUSE_GL=1)
14 ADD_DEFINITIONS(-DUSE_SLOTPLANNER=1)
15 ENDIF(USE_SLOTPLANNER)
19 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
20 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
21 set (CMAKE_EXE_LINKER_FLAGS
22 "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
25 add_compile_options(-Wall -g -Wno-unknown-pragmas)
26 include_directories(incl)
27 add_executable(go_car_go
34 decision_control/rrtplanner.cc
35 decision_control/slotplanner.cc
37 perception/obstacle.cc
39 vehicle_platform/bcar.cc
40 vehicle_platform/cost.cc
41 vehicle_platform/dubins.cc
42 vehicle_platform/reeds_shepp.cpp
43 vehicle_platform/steer.cc
46 target_link_libraries(go_car_go jsoncpp)
48 target_link_libraries(go_car_go SDL2)
49 target_link_libraries(go_car_go GL)
50 target_link_libraries(go_car_go GLU)
52 IF (PLANNER MATCHES "T3")
53 target_link_libraries(go_car_go pthread)
54 ENDIF (PLANNER MATCHES "T3")