Skip to content
Snippets Groups Projects
Commit 3dc1c9c2 authored by Wilson Jallet's avatar Wilson Jallet :clapper: Committed by nim65s
Browse files

[cmake] Set BUILD_INTERFACE for include dirs of main ndcurves target

+ allows the project to be more easily consumed thru FetchContent
parent 6500e49b
No related branches found
No related tags found
No related merge requests found
Pipeline #47999 passed with warnings
......@@ -140,7 +140,8 @@ modernize_target_link_libraries(
INCLUDE_DIRS
${EIGEN3_INCLUDE_DIR})
target_include_directories(
${PROJECT_NAME} INTERFACE $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
${PROJECT_NAME} INTERFACE $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
target_link_libraries(${PROJECT_NAME} INTERFACE Boost::serialization)
if(CURVES_WITH_PINOCCHIO_SUPPORT)
target_link_libraries(${PROJECT_NAME} INTERFACE pinocchio::pinocchio)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment