Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
Install mcap headers in include/${PROJECT_NAME}/mcap and export them
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Orlov <[email protected]>
  • Loading branch information
MichaelOrlov committed Oct 26, 2022
1 parent ddd028b commit f3606f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mcap_vendor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ macro(build_mcap_vendor)

install(
DIRECTORY ${_mcap_include_dir}/mcap
DESTINATION ${CMAKE_INSTALL_PREFIX}/include
DESTINATION include/${PROJECT_NAME}
)

install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME})
Expand All @@ -61,7 +61,7 @@ endmacro()
## Call vendor macro
build_mcap_vendor()

ament_export_include_directories(${_mcap_include_dir})
ament_export_include_directories(include/${PROJECT_NAME})
ament_export_libraries(${PROJECT_NAME})
ament_export_targets(${PROJECT_NAME} HAS_LIBRARY_TARGET)
ament_export_dependencies(zstd_vendor zstd)
Expand Down
2 changes: 1 addition & 1 deletion rosbag2_storage_mcap/src/mcap_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#endif
#endif

#include <mcap/mcap.hpp>
#include <mcap_vendor/mcap/mcap.hpp>

#include <algorithm>
#include <filesystem>
Expand Down

0 comments on commit f3606f9

Please sign in to comment.