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
37 decision_control/rrtplanner.cc
38 decision_control/slotplanner.cc
40 perception/obstacle.cc
42 vehicle_platform/bcar.cc
43 vehicle_platform/cost.cc
44 vehicle_platform/dubins.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")