Skip to content

Commit

Permalink
build: include test_helpers in coverage analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
mhx committed Aug 15, 2024
1 parent 3fa03e0 commit 35ca679
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,12 @@ foreach(tgt ${BINARY_TARGETS} ${TEST_TARGETS} ${MAIN_TARGETS})
target_include_directories(${tgt} PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/tools/include>)
endforeach()

foreach(tgt ${LIBDWARFS_TARGETS} ${LIBDWARFS_OBJECT_TARGETS} ${BINARY_TARGETS} ${TEST_TARGETS} ${MAIN_TARGETS})
foreach(tgt ${LIBDWARFS_TARGETS} ${LIBDWARFS_OBJECT_TARGETS} dwarfs_test_helpers
${BINARY_TARGETS} ${TEST_TARGETS} ${MAIN_TARGETS})
if(NOT TARGET ${tgt})
continue()
endif()

set_target_properties(${tgt} PROPERTIES EXPORT_COMPILE_COMMANDS ON)

target_link_libraries(${tgt} PUBLIC Boost::boost)
Expand Down

0 comments on commit 35ca679

Please sign in to comment.