mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-06 03:16:46 +00:00
new(userspace/falco): add intermediate cmake target for falco app
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
parent
a7ef45852c
commit
bf5b8f5c83
@ -57,7 +57,6 @@ set(
|
|||||||
event_drops.cpp
|
event_drops.cpp
|
||||||
stats_writer.cpp
|
stats_writer.cpp
|
||||||
versions_info.cpp
|
versions_info.cpp
|
||||||
falco.cpp
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set(
|
set(
|
||||||
@ -138,24 +137,29 @@ if(NOT MINIMAL_BUILD)
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_executable(
|
add_library(
|
||||||
falco
|
falco_application STATIC
|
||||||
${FALCO_SOURCES}
|
${FALCO_SOURCES}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(falco ${FALCO_DEPENDENCIES})
|
add_dependencies(falco_application ${FALCO_DEPENDENCIES})
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
falco
|
falco_application
|
||||||
${FALCO_LIBRARIES}
|
${FALCO_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(
|
target_include_directories(
|
||||||
falco
|
falco_application
|
||||||
PUBLIC
|
PUBLIC
|
||||||
${FALCO_INCLUDE_DIRECTORIES}
|
${FALCO_INCLUDE_DIRECTORIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
add_executable(falco falco.cpp)
|
||||||
|
add_dependencies(falco falco_application ${FALCO_DEPENDENCIES})
|
||||||
|
target_link_libraries(falco falco_application ${FALCO_LIBRARIES})
|
||||||
|
target_include_directories(falco PUBLIC ${FALCO_INCLUDE_DIRECTORIES})
|
||||||
|
|
||||||
if(NOT MINIMAL_BUILD)
|
if(NOT MINIMAL_BUILD)
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET falco
|
TARGET falco
|
||||||
|
Loading…
Reference in New Issue
Block a user