Skip to content

Commit

Permalink
add includes to interface library
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Gesel <[email protected]>
  • Loading branch information
pac48 committed Nov 9, 2024
1 parent c629647 commit 07746cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ include(CTest)
# Add cmake macro to project
include(fast_forward_kinematics.cmake)

add_library(fast_forward_kinematics_header INTERFACE)
target_include_directories(fast_forward_kinematics_header INTERFACE ${CMAKE_SOURCE_DIR}/include)

if (BUILD_TESTING)
add_subdirectory(test)
endif ()
Expand Down
4 changes: 2 additions & 2 deletions fast_forward_kinematics.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function(generate_fast_forward_kinematics_library_common target_name)
add_library(${target_name} SHARED forward_kinematics_lib.${ARG_EXT})
add_dependencies(${target_name} code_generation)

target_include_directories(${target_name} PUBLIC ${CMAKE_SOURCE_DIR}/include)
target_link_libraries(${target_name} PUBLIC fast_forward_kinematics_header)
target_compile_definitions(${target_name} PUBLIC "${FAST_FK_NUMBER_OF_JOINTS}")


Expand Down Expand Up @@ -80,7 +80,7 @@ function(generate_fast_forward_kinematics_library target_name)
add_dependencies(fast_forward_kinematics_library LBFGSpp)
target_compile_definitions(fast_forward_kinematics_library PUBLIC FAST_FK_USE_IK)
target_include_directories(fast_forward_kinematics_library PUBLIC ${LBFGSppIncludeDir})
# find_package(Eigen3 3.3 NO_MODULE)
find_package(Eigen3 3.3 NO_MODULE)
if(NOT Eigen3_FOUND)
include(FetchContent)
set(PROJECT_BUILD_TESTING ${BUILD_TESTING})
Expand Down

0 comments on commit 07746cd

Please sign in to comment.