Skip to content

Commit

Permalink
Find Boost in top level CMake.
Browse files Browse the repository at this point in the history
  • Loading branch information
skasperski committed Mar 1, 2024
1 parent b901757 commit af97020
Show file tree
Hide file tree
Showing 18 changed files with 2 additions and 18 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
cmake_minimum_required (VERSION 3.16.3)
project(wbc)

include(FindPkgConfig)
find_package(PkgConfig REQUIRED)
find_package(Boost REQUIRED COMPONENTS system filesystem unit_test_framework serialization)

set(PROJECT_VERSION 0.2)
set(API_VERSION ${PROJECT_VERSION})
Expand Down
1 change: 0 additions & 1 deletion src/controllers/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
find_package(Boost COMPONENTS system filesystem unit_test_framework serialization REQUIRED)
add_executable(test_pot_field_controllers test_pot_field_controllers.cpp)
target_link_libraries(test_pot_field_controllers
wbc-controllers
Expand Down
1 change: 0 additions & 1 deletion src/core/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
find_package(Boost COMPONENTS system filesystem unit_test_framework serialization REQUIRED)
add_executable(test_core test_core.cpp)
target_link_libraries(test_core
wbc-core
Expand Down
1 change: 0 additions & 1 deletion src/robot_models/hyrodyn/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
find_package(Boost COMPONENTS system filesystem unit_test_framework serialization REQUIRED)
add_executable(test_robot_model_hyrodyn test_robot_model_hyrodyn.cpp ../../test/test_robot_model.cpp)
target_link_libraries(test_robot_model_hyrodyn
wbc-robot_models-hyrodyn
Expand Down
1 change: 0 additions & 1 deletion src/robot_models/kdl/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
find_package(Boost COMPONENTS system filesystem unit_test_framework serialization REQUIRED)
add_executable(test_robot_model_kdl test_robot_model_kdl.cpp ../../test/test_robot_model.cpp)
target_link_libraries(test_robot_model_kdl
wbc-robot_models-kdl
Expand Down
1 change: 0 additions & 1 deletion src/robot_models/pinocchio/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
find_package(Boost COMPONENTS system filesystem unit_test_framework serialization REQUIRED)
add_executable(test_robot_model_pinocchio test_robot_model_pinocchio.cpp ../../test/test_robot_model.cpp)
target_link_libraries(test_robot_model_pinocchio
wbc-robot_models-pinocchio
Expand Down
1 change: 0 additions & 1 deletion src/robot_models/rbdl/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
find_package(Boost COMPONENTS system filesystem unit_test_framework serialization REQUIRED)
add_executable(test_robot_model_rbdl test_robot_model_rbdl.cpp ../../test/test_robot_model.cpp)
target_link_libraries(test_robot_model_rbdl
wbc-robot_models-rbdl
Expand Down
1 change: 0 additions & 1 deletion src/robot_models/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
find_package(Boost COMPONENTS system filesystem unit_test_framework serialization REQUIRED)
add_executable(test_model_consistency test_model_consistency.cpp test_robot_model.cpp)
target_link_libraries(test_model_consistency
wbc-robot_models-hyrodyn
Expand Down
1 change: 0 additions & 1 deletion src/scenes/acceleration/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
find_package(Boost COMPONENTS system filesystem unit_test_framework serialization REQUIRED)
add_executable(test_acceleration_scene test_acceleration_scene.cpp)
target_link_libraries(test_acceleration_scene
wbc-scenes-acceleration
Expand Down
1 change: 0 additions & 1 deletion src/scenes/acceleration_reduced_tsid/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
find_package(Boost COMPONENTS system filesystem unit_test_framework serialization REQUIRED)
add_executable(test_acceleration_scene_reduced_tsid test_acceleration_scene_reduced_tsid.cpp)
target_link_libraries(test_acceleration_scene_reduced_tsid
wbc-scenes-acceleration_reduced_tsid
Expand Down
1 change: 0 additions & 1 deletion src/scenes/acceleration_tsid/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
find_package(Boost COMPONENTS system filesystem unit_test_framework serialization REQUIRED)
add_executable(test_acceleration_scene_tsid test_acceleration_scene_tsid.cpp)
target_link_libraries(test_acceleration_scene_tsid
wbc-scenes-acceleration_tsid
Expand Down
1 change: 0 additions & 1 deletion src/scenes/velocity/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
find_package(Boost COMPONENTS system filesystem unit_test_framework serialization REQUIRED)
add_executable(test_velocity_scene test_velocity_scene.cpp)
target_link_libraries(test_velocity_scene
wbc-scenes-velocity
Expand Down
1 change: 0 additions & 1 deletion src/scenes/velocity_qp/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
find_package(Boost COMPONENTS system filesystem unit_test_framework serialization REQUIRED)
add_executable(test_velocity_scene_quadratic_cost test_velocity_scene_quadratic_cost.cpp)
target_link_libraries(test_velocity_scene_quadratic_cost
wbc-scenes-velocity_qp
Expand Down
1 change: 0 additions & 1 deletion src/solvers/eiquadprog/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
find_package(Boost COMPONENTS system filesystem unit_test_framework serialization REQUIRED)
add_executable(test_eiquadprog_solver test_eiquadprog_solver.cpp)
target_link_libraries(test_eiquadprog_solver
wbc-solvers-eiquadprog
Expand Down
1 change: 0 additions & 1 deletion src/solvers/hls/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
find_package(Boost COMPONENTS system filesystem unit_test_framework serialization REQUIRED)
add_executable(test_hls_solver test_hls_solver.cpp)
target_link_libraries(test_hls_solver
wbc-solvers-hls
Expand Down
1 change: 0 additions & 1 deletion src/solvers/proxqp/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
find_package(Boost COMPONENTS system filesystem unit_test_framework serialization REQUIRED)
add_executable(test_proxqp_solver test_proxqp_solver.cpp)
target_link_libraries(test_proxqp_solver
wbc-solvers-proxqp
Expand Down
1 change: 0 additions & 1 deletion src/solvers/qpoases/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
find_package(Boost COMPONENTS system filesystem unit_test_framework serialization REQUIRED)
add_executable(test_qpoases_solver test_qpoases_solver.cpp)
target_link_libraries(test_qpoases_solver
wbc-solvers-qpoases
Expand Down
1 change: 0 additions & 1 deletion src/solvers/qpswift/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
find_package(Boost COMPONENTS system filesystem unit_test_framework serialization REQUIRED)
add_executable(test_qpswift_solver test_qpswift_solver.cpp)
target_link_libraries(test_qpswift_solver
wbc-solvers-qpswift
Expand Down

0 comments on commit af97020

Please sign in to comment.