Skip to content

Commit

Permalink
Made a workaround to the RBDL different include dir
Browse files Browse the repository at this point in the history
  • Loading branch information
pariterre committed Sep 27, 2021
1 parent a68865f commit d19ed62
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ if(${MATH_LIBRARY_BACKEND} STREQUAL "Eigen3")
set(MATH_BACKEND_INCLUDE_DIR "${EIGEN3_INCLUDE_DIR}")
set(MATH_BACKEND_LIBRARIES "")
find_package(RBDL REQUIRED)
set(RBDL_INCLUDE_DIR ${RBDL_INCLUDE_DIR}/..)
elseif(${MATH_LIBRARY_BACKEND} STREQUAL "Casadi")
find_package(Casadi REQUIRED)
set(MATH_BACKEND_INCLUDE_DIR
Expand Down Expand Up @@ -139,7 +140,6 @@ target_include_directories(${BIORBD_NAME} PRIVATE
"${CMAKE_SOURCE_DIR}/include"
"${BIORBD_BINARY_DIR}/include"
"${RBDL_INCLUDE_DIR}"
"${RBDL_INCLUDE_DIR}/.."
"${MATH_BACKEND_INCLUDE_DIR}"
"${TinyXML_INCLUDE_DIR}"
)
Expand Down
1 change: 0 additions & 1 deletion binding/c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ target_include_directories(${PROJECT_NAME} PRIVATE
"${CMAKE_SOURCE_DIR}/include"
"${BIORBD_BINARY_DIR}/include"
"${RBDL_INCLUDE_DIR}"
"${RBDL_INCLUDE_DIR}/.."
"${MATH_BACKEND_INCLUDE_DIR}"
)

Expand Down
1 change: 0 additions & 1 deletion binding/matlab/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ foreach(CPP_FILE ${CPP_FILES})
"${CMAKE_SOURCE_DIR}/include"
"${BIORBD_BINARY_DIR}/include"
"${RBDL_INCLUDE_DIR}"
"${RBDL_INCLUDE_DIR}/.."
"${MATH_BACKEND_INCLUDE_DIR}"
"${Matlab_INCLUDE_DIRS}"
)
Expand Down
1 change: 0 additions & 1 deletion binding/python3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ target_include_directories(${PYTHON_PROJECT_NAME} PRIVATE
"${CMAKE_SOURCE_DIR}/include"
"${BIORBD_BINARY_DIR}/include"
"${RBDL_INCLUDE_DIR}"
"${RBDL_INCLUDE_DIR}/.."
"${MATH_BACKEND_INCLUDE_DIR}"
"${IPOPT_INCLUDE_DIR}"
"${Python3_INCLUDE_DIRS}"
Expand Down
1 change: 0 additions & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ foreach(FILE ${EXAMPLE_FILES})
"${CMAKE_SOURCE_DIR}/include"
"${BIORBD_BINARY_DIR}/include"
"${RBDL_INCLUDE_DIR}"
"${RBDL_INCLUDE_DIR}/.."
"${IPOPT_INCLUDE_DIR}"
"${MATH_BACKEND_INCLUDE_DIR}"
)
Expand Down
1 change: 0 additions & 1 deletion examples/cpp_casadi_installed/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ add_executable(${PROJECT_NAME} ${FILE})
target_include_directories(${PROJECT_NAME} PUBLIC
${biorbd_casadi_INCLUDE_DIR}
${RBDLCasadi_INCLUDE_DIR}
${RBDLCasadi_INCLUDE_DIR}/..
${Casadi_INCLUDE_DIR}
${Casadi_INCLUDE_DIR}/..
${TinyXML_INCLUDE_DIR}
Expand Down
1 change: 0 additions & 1 deletion examples/cpp_eigen_installed/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ add_executable(${PROJECT_NAME} ${FILE})
target_include_directories(${PROJECT_NAME} PUBLIC
${biorbd_eigen_INCLUDE_DIR}
${RBDL_INCLUDE_DIR}
${RBDL_INCLUDE_DIR}/..
${EIGEN3_INCLUDE_DIR}
${TinyXML_INCLUDE_DIR}
)
Expand Down
1 change: 0 additions & 1 deletion src/Actuators/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ set_target_properties(${PROJECT_NAME} PROPERTIES DEBUG_POSTFIX "_debug")
# Add the include
target_include_directories(${PROJECT_NAME} PRIVATE
"${RBDL_INCLUDE_DIR}"
"${RBDL_INCLUDE_DIR}/.."
"${MATH_BACKEND_INCLUDE_DIR}"
"${CMAKE_SOURCE_DIR}/include"
"${BIORBD_BINARY_DIR}/include"
Expand Down
1 change: 0 additions & 1 deletion src/Muscles/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ target_include_directories(${PROJECT_NAME} PRIVATE
"${CMAKE_SOURCE_DIR}/include"
"${BIORBD_BINARY_DIR}/include"
"${RBDL_INCLUDE_DIR}"
"${RBDL_INCLUDE_DIR}/.."
"${MATH_BACKEND_INCLUDE_DIR}"
"${IPOPT_INCLUDE_DIR}"
)
Expand Down
1 change: 0 additions & 1 deletion src/RigidBody/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ target_include_directories(${PROJECT_NAME} PRIVATE
"${CMAKE_SOURCE_DIR}/include"
"${BIORBD_BINARY_DIR}/include"
"${RBDL_INCLUDE_DIR}"
"${RBDL_INCLUDE_DIR}/.."
"${MATH_BACKEND_INCLUDE_DIR}"
)

Expand Down
1 change: 0 additions & 1 deletion src/Utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ target_include_directories(${PROJECT_NAME} PRIVATE
"${CMAKE_SOURCE_DIR}/include"
"${BIORBD_BINARY_DIR}/include"
"${RBDL_INCLUDE_DIR}"
"${RBDL_INCLUDE_DIR}/.."
"${MATH_BACKEND_INCLUDE_DIR}"
)

Expand Down
1 change: 0 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ target_include_directories(${PROJECT_NAME} PRIVATE
"${CMAKE_SOURCE_DIR}/include"
"${BIORBD_BINARY_DIR}/include"
"${RBDL_INCLUDE_DIR}"
"${RBDL_INCLUDE_DIR}/.."
"${MATH_BACKEND_INCLUDE_DIR}"
"${IPOPT_INCLUDE_DIR}"
)
Expand Down
1 change: 0 additions & 1 deletion test/binding/c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ target_include_directories(${PROJECT_NAME} PRIVATE
"${CMAKE_SOURCE_DIR}/include"
"${BIORBD_BINARY_DIR}/include"
"${RBDL_INCLUDE_DIR}"
"${RBDL_INCLUDE_DIR}/.."
"${MATH_BACKEND_INCLUDE_DIR}"
)

Expand Down

0 comments on commit d19ed62

Please sign in to comment.