# Experimental build script for use with CMake-compatible IDEs only cmake_minimum_required(VERSION 2.8.12.2) project(driving) #################################################################################################### add_subdirectory("base") add_subdirectory("mapping/zrn") add_subdirectory("vis/zviz") add_subdirectory("sim/rn2gl") add_subdirectory("sim/simple_sim") add_subdirectory("sim/test") add_subdirectory("sim/sdf_test") add_subdirectory("vehicle/planner/integration_tests") #################################################################################################### ## everything! set(COMMON_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}") include("${COMMON_DIRECTORY}/common.cmake") add_library( everything "${DRIVING_ROOT}/base/convert_test.cpp" "${DRIVING_ROOT}/base/file/filesystem_interface_test.cc" "${DRIVING_ROOT}/base/strings/keys.cc" "${DRIVING_ROOT}/clams/src/apps/calvis/ClamsCalVisApp.cpp" "${DRIVING_ROOT}/vehicle/stdr_libraries/yaml_cpp_patched/src/emitterstate.cpp" "${DRIVING_ROOT}/teleop/telemetry/ros_dds_bridge/data_plugin_ros_tagcloud.cpp" "${DRIVING_ROOT}/vehicle/common/roads/reader.cpp" "${DRIVING_ROOT}/vehicle/common/roads/roadgen/region.cpp" "${DRIVING_ROOT}/vehicle/planner/mission/road_map_test.cpp" "${DRIVING_ROOT}/vehicle/planner/mission/road_planner_test.cpp" "${DRIVING_ROOT}/vehicle/planner/node/decision/decision_nodelet.cpp" "${DRIVING_ROOT}/vehicle/planner/node/smoother/smoother_nodelet.cpp" "${DRIVING_ROOT}/vehicle/planner/node/smoother/smoother_visualizer.cpp" "${DRIVING_ROOT}/vehicle/planner/node/test_minimal_build_route_reference.cpp" "${DRIVING_ROOT}/vehicle/planner/node/tracker/tracker_nodelet.cpp" "${DRIVING_ROOT}/vehicle/planner/node/visualizer/marker_pub.cpp" "${DRIVING_ROOT}/vehicle/planner/node/visualizer/marker_zviz.cpp" "${DRIVING_ROOT}/vehicle/planner/node/visualizer/marker_zviz.h" "${DRIVING_ROOT}/vehicle/planner/node/visualizer/visualizer.cpp" "${DRIVING_ROOT}/vehicle/planner/learning/framework/learning_framework.cpp" "${DRIVING_ROOT}/vehicle/planner/mission/road_map_test.cpp" # etc. ) target_include_directories( everything SYSTEM PRIVATE "${BAZEL_CACHE_DIRECTORY}/execroot/driving/bazel-out/local_linux-fastbuild/genfiles" "${BAZEL_CACHE_DIRECTORY}/execroot/driving/bazel-out/local_linux-fastbuild/genfiles/vehicle/public/stdr_msgs" "${BAZEL_CACHE_DIRECTORY}/execroot/driving/bazel-out/local_linux-fastbuild/genfiles/sim/sim_msgs" "${BAZEL_CACHE_DIRECTORY}/execroot/driving/bazel-out/local_linux-fastbuild/genfiles/third_party/ros/velodyne/velodyne_msgs" "${BAZEL_CACHE_DIRECTORY}/execroot/driving/bazel-out/local_linux-fastbuild/genfiles/third_party/caffe/src" "${BAZEL_CACHE_DIRECTORY}/execroot/driving/bazel-out/local_linux-fastbuild/genfiles/third_party/ros/common_msgs/sensor_msgs" "${BAZEL_CACHE_DIRECTORY}/execroot/driving/bazel-out/local_linux-fastbuild/genfiles/vehicle/vehicle_msgs" "${DRIVING_ROOT}/clams/include" "${DRIVING_ROOT}/vehicle/lidar_projector/include" "${DRIVING_ROOT}/vehicle/stdr_libraries/global_coords/include" "${DRIVING_ROOT}/vehicle/stdr_libraries/stdr_lib/include" "${DRIVING_ROOT}/packages/zoox/zoox_libraries/include" "${DRIVING_ROOT}/third_party/caffe/include" "${DRIVING_ROOT}/bazel-bin/vehicle/public/stdr_msgs" "${DRIVING_ROOT}/third_party/Box2D" "${DRIVING_ROOT}/third_party/glfw/include" "${DRIVING_ROOT}/third_party/glm" "${EIGEN3_INCLUDE_DIR}" "/opt/RTI/ndds.5.1.1/include" "/opt/RTI/ndds.5.1.1/include/ndds" "/usr/lib/openmpi/include/openmpi" "/usr/lib/openmpi/include/openmpi/opal/mca" ) target_compile_definitions( everything PUBLIC RTI_UNIX RTI_LINUX CPU_ONLY EIGEN_DONT_ALIGN_STATICALLY )