diff --git a/CMakeLists.txt b/CMakeLists.txt index 114b61d..ceb5907 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,6 +48,13 @@ target_include_directories(lane_route_core PUBLIC ) # The workspace builds Debug by default. This runs on the planner thread of a 2-core NUC, so it stays optimised. target_compile_options(lane_route_core PRIVATE -O3) +if(NOT BUILDING_WITH_CATKIN) + # Same output directory as the other standalone libraries, so build_robot ships as one flat directory. + set_target_properties(lane_route_core PROPERTIES + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} + BUILD_RPATH "${CMAKE_BINARY_DIR}" + ) +endif() if(BUILD_LANE_ROUTE_TESTS) find_package(GTest REQUIRED)