Skip to content

Commit

Permalink
Fixing various build errors related to HDF5, see ros-industrial-attic#41
Browse files Browse the repository at this point in the history
  • Loading branch information
MShields1986 committed Mar 29, 2023
1 parent 73eb461 commit 3f06059
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion map_creator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ find_package(catkin REQUIRED COMPONENTS
)

find_package(octomap REQUIRED)
find_package(HDF5 REQUIRED)

add_message_files(
FILES
Expand Down Expand Up @@ -48,7 +49,9 @@ add_library(hdf5_dataset src/hdf5_dataset.cpp)

target_link_libraries(sphere_discretization ${catkin_LIBRARIES} ${OCTOMAP_LIBRARIES} ${PCL_LIBRARY_DIRS})
target_link_libraries(kinematics ${catkin_LIBRARIES} -llapack)
target_link_libraries(hdf5_dataset ${catkin_LIBRARIES} )
# target_link_libraries(hdf5_dataset ${catkin_LIBRARIES})
# target_link_libraries(hdf5_dataset ${catkin_LIBRARIES} -ldhf5 -ldhf5_cpp)
target_link_libraries(hdf5_dataset ${catkin_LIBRARIES} ${HDF5_LIBRARIES})

install(TARGETS sphere_discretization kinematics hdf5_dataset
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
Expand Down

0 comments on commit 3f06059

Please sign in to comment.