Skip to content

Commit

Permalink
Install benchmark targets. Fixed warning output if benchmark library …
Browse files Browse the repository at this point in the history
…not found.
  • Loading branch information
StefanFabian committed Sep 9, 2024
1 parent 98042a8 commit e7235ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hector_math/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@ if (${benchmark_FOUND})
target_link_libraries(benchmark_iterators PRIVATE grid_map_core::grid_map_core)
endif()
target_link_libraries(benchmark_iterators PRIVATE hector_math benchmark benchmark_main pthread)

install(TARGETS benchmark_caches quaternion_binning_modes show_iterators benchmark_iterators
RUNTIME DESTINATION lib/${PROJECT_NAME}
)
else()
message(WARN benchmark library not found. Not building benchmarks.)
message(WARNING "benchmark library not found. Not building benchmarks.")
endif()

#############
Expand Down

0 comments on commit e7235ee

Please sign in to comment.