Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kenlig committed Oct 27, 2024
1 parent 0a3bbba commit 14548db
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions daemon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ set(PLACEHOLDER_INPUT ${CMAKE_CURRENT_SOURCE_DIR}/assets/placeholder)
set(PLACEHOLDER_OUTPUT placeholder.c)

add_custom_command(
OUTPUT placeholder.c
COMMAND embedfile placeholder ${PLACEHOLDER_INPUT} ${PLACEHOLDER_OUTPUT}
DEPENDS ${PLACEHOLDER_INPUT})
OUTPUT placeholder.c
COMMAND embedfile placeholder ${PLACEHOLDER_INPUT} ${PLACEHOLDER_OUTPUT}
DEPENDS ${PLACEHOLDER_INPUT})

add_library(libbpftime_daemon STATIC
user/bpf_tracer.cpp
Expand Down Expand Up @@ -63,3 +63,8 @@ install(TARGETS bpftime_daemon CONFIGURATIONS Release Debug RelWithDebInfo DESTI
if(BPFTIME_ENABLE_UNIT_TESTING)
add_subdirectory(test)
endif()

if(${TEST_LCOV})
target_compile_options(bpftime_daemon PUBLIC -fprofile-arcs -ftest-coverage -fprofile-update=atomic)
target_link_options(bpftime_daemon PUBLIC -fprofile-arcs)
endif()

0 comments on commit 14548db

Please sign in to comment.