Skip to content

Commit

Permalink
Fix build for melodic (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
eupedrosa committed Sep 8, 2022
1 parent b01dbe6 commit 454dfc5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
7 changes: 0 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ find_package(Eigen3 3.3 REQUIRED NO_MODULE)
# the code
add_subdirectory(src)

# libs and binaries, generate export targets
install(TARGETS iris_lama
EXPORT ${CMAKE_PROJECT_NAME}Targets
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})

# header files, note the "/" after include
install(DIRECTORY include/
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
Expand Down
6 changes: 6 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,9 @@ endif()
target_link_libraries(iris_lama PUBLIC pthread Eigen3::Eigen)
target_include_directories(iris_lama PRIVATE extern/minisam)

# libs and binaries, generate export targets
install(TARGETS iris_lama
EXPORT ${CMAKE_PROJECT_NAME}Targets
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
2 changes: 1 addition & 1 deletion vendor/minisam/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ set(minisam_SRC
)

add_library(minisam OBJECT ${minisam_SRC})
target_link_libraries(minisam PRIVATE Eigen3::Eigen)
target_include_directories(minisam PRIVATE ${EIGEN3_INCLUDE_DIR})

0 comments on commit 454dfc5

Please sign in to comment.