Skip to content

Commit

Permalink
INSTALL_INTERFACE
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 committed Jul 4, 2024
1 parent 272b020 commit 7672f56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ add_library(gtsam_points SHARED
target_include_directories(gtsam_points PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/nanoflann/include>
$<INSTALL_INTERFACE:include>
)
target_link_libraries(gtsam_points
Boost::boost
Expand Down Expand Up @@ -203,6 +204,7 @@ if(BUILD_WITH_CUDA)
)
target_include_directories(gtsam_points_cuda PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)
target_link_libraries(gtsam_points_cuda
Boost::boost
Expand Down Expand Up @@ -273,7 +275,7 @@ endif()
#############

include(GNUInstallDirs)
install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(DIRECTORY include/ thirdparty/nanoflann/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

list(APPEND GTSAM_POINTS_LIBRARIES gtsam_points)
if(BUILD_WITH_CUDA)
Expand Down

0 comments on commit 7672f56

Please sign in to comment.