Skip to content

Commit

Permalink
tests require boost headers
Browse files Browse the repository at this point in the history
patch imported from robotpkg
  • Loading branch information
nim65s committed Oct 8, 2024
1 parent 39d8d24 commit c8ca795
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#
macro(DEFINE_TEST NAME)
add_unit_test(${NAME} ${NAME}.cc)
target_include_directories(${NAME} PRIVATE ${Boost_INCLUDE_DIRS})
target_link_libraries(${NAME} ${PROJECT_NAME})
endmacro(DEFINE_TEST)

Expand All @@ -46,5 +47,6 @@ target_link_libraries(serialization ${PROJECT_NAME})
set(HPP_LOGGINGDIR "${CMAKE_CURRENT_BINARY_DIR}")
config_files(run_debug.sh)
add_executable(debug debug.cc)
target_include_directories(debug PRIVATE ${Boost_INCLUDE_DIRS})
target_link_libraries(debug ${PROJECT_NAME})
add_test(NAME debug COMMAND ${RUNTIME_OUTPUT_DIRECTORY}/run_debug.sh)

0 comments on commit c8ca795

Please sign in to comment.