cmake_minimum_required(VERSION 3.7)
-project(niam_car)
+project(iamcar)
IF(PLANNER)
ADD_DEFINITIONS(-DPLANNER=${PLANNER})
IF(TMAX)
ADD_DEFINITIONS(-DTMAX=${TMAX})
ENDIF(TMAX)
+IF(USE_GL)
+ ADD_DEFINITIONS(-DUSE_GL=1)
+ENDIF(USE_GL)
+IF(USE_SLOTPLANNER)
+ ADD_DEFINITIONS(-DUSE_SLOTPLANNER=1)
+ENDIF(USE_SLOTPLANNER)
find_package(OpenMP)
if (OPENMP_FOUND)
base/rrtnode.cc
decision_control/rrtplanner.cc
+ decision_control/slotplanner.cc
perception/obstacle.cc
)
target_link_libraries(go_car_go jsoncpp)
-target_link_libraries(go_car_go SDL2)
-target_link_libraries(go_car_go GL)
-target_link_libraries(go_car_go GLU)
+IF (USE_GL)
+ target_link_libraries(go_car_go SDL2)
+ target_link_libraries(go_car_go GL)
+ target_link_libraries(go_car_go GLU)
+ENDIF (USE_GL)
+IF (PLANNER MATCHES "T3")
+ target_link_libraries(go_car_go pthread)
+ENDIF (PLANNER MATCHES "T3")