1+ find_package (Boost REQUIRED COMPONENTS filesystem)
2+ find_package (ament_cmake_gtest REQUIRED)
3+
14file (TO_NATIVE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /resources" TEST_RESOURCES_DIR)
25if (WIN32 )
36 # Correct directory separator for Windows
@@ -8,13 +11,12 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR})
811
912ament_add_gtest(test_basics test_basics.cpp)
1013target_link_libraries (test_basics ${PROJECT_NAME} )
11- ament_target_dependencies(test_basics Eigen3)
1214
1315ament_add_gtest(test_point_inclusion test_point_inclusion.cpp)
14- target_link_libraries (test_point_inclusion ${PROJECT_NAME} )
16+ target_link_libraries (test_point_inclusion ${PROJECT_NAME} Boost::filesystem )
1517
1618ament_add_gtest(test_bounding_sphere test_bounding_sphere.cpp)
17- target_link_libraries (test_bounding_sphere ${PROJECT_NAME} )
19+ target_link_libraries (test_bounding_sphere ${PROJECT_NAME} Boost::filesystem )
1820
1921ament_add_gtest(test_bounding_box test_bounding_box.cpp)
2022target_link_libraries (test_bounding_box ${PROJECT_NAME} )
@@ -26,13 +28,13 @@ ament_add_gtest(test_create_mesh test_create_mesh.cpp)
2628target_link_libraries (test_create_mesh ${PROJECT_NAME} )
2729
2830ament_add_gtest(test_loaded_meshes test_loaded_meshes.cpp)
29- target_link_libraries (test_loaded_meshes ${PROJECT_NAME} )
31+ target_link_libraries (test_loaded_meshes ${PROJECT_NAME} Boost::filesystem )
3032
3133ament_add_gtest(test_shapes test_shapes.cpp)
3234target_link_libraries (test_shapes ${PROJECT_NAME} )
3335
3436ament_add_gtest(test_ray_intersection test_ray_intersection.cpp)
35- target_link_libraries (test_ray_intersection ${PROJECT_NAME} )
37+ target_link_libraries (test_ray_intersection ${PROJECT_NAME} Boost::filesystem )
3638
3739ament_add_gtest(test_body_operations test_body_operations.cpp)
38- target_link_libraries (test_body_operations ${PROJECT_NAME} )
40+ target_link_libraries (test_body_operations ${PROJECT_NAME} Boost::filesystem )
0 commit comments