Skip to content

Commit

Permalink
Fix: cmake dependencies [no ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Petingo committed Jun 21, 2023
1 parent aec410a commit b494316
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ if(BUILD_UTILS)
add_subdirectory(utils)
endif()

# install CGAL
install(DIRECTORY 3rdparty/CGAL/include/CGAL DESTINATION include)

#------------------------------------------------------------------------------------------------------------
# Uninstall target, for "make uninstall"
Expand Down
5 changes: 4 additions & 1 deletion cmake/dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,11 @@ else()
set(CGAL_INCLUDE_DIR "3rdparty/CGAL/include")
endif()
include_directories( ${CGAL_INCLUDE_DIR} )
# add_library(CGAL INTERFACE)
# target_include_directories(CGAL INTERFACE 3rdparty/CGAL/include)
# set (TSLAM_REQUIRED_LIBRARIES ${TSLAM_REQUIRED_LIBRARIES} CGAL)

if(NOT USE_OWN_CGAL)
if(NOT USE_OWN_CILANTRO)
find_package( cilantro REQUIRED )
else()
set(CILANTRO_INCLUDE_DIR "3rdparty/cilantro/include")
Expand Down
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ install(FILES ${tslam_hdrs_base}
COMPONENT main)

install(FILES ${tslam_map_hdr} DESTINATION include/${PROJECT_NAME}/map_types COMPONENT main)
install(FILES ${tslam_basictypes_hdr} DESTINATION include/${PROJECT_NAME}/basictypes COMPONENT main)

install(FILES ${tslam_basictypes_hdr} DESTINATION include/${PROJECT_NAME}/basictypes COMPONENT main)
install(FILES ${tslam_reconstruction_hdr} DESTINATION include/${PROJECT_NAME}/reconstruction COMPONENT main)

0 comments on commit b494316

Please sign in to comment.