From bf5b8f5c83c4433617f2577d4eab2d6be7f68066 Mon Sep 17 00:00:00 2001 From: Jason Dellaluce Date: Tue, 14 Feb 2023 18:48:18 +0000 Subject: [PATCH] new(userspace/falco): add intermediate cmake target for falco app Signed-off-by: Jason Dellaluce --- userspace/falco/CMakeLists.txt | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/userspace/falco/CMakeLists.txt b/userspace/falco/CMakeLists.txt index 946f26d4..4c749416 100644 --- a/userspace/falco/CMakeLists.txt +++ b/userspace/falco/CMakeLists.txt @@ -57,7 +57,6 @@ set( event_drops.cpp stats_writer.cpp versions_info.cpp - falco.cpp ) set( @@ -138,24 +137,29 @@ if(NOT MINIMAL_BUILD) ) endif() -add_executable( - falco +add_library( + falco_application STATIC ${FALCO_SOURCES} ) -add_dependencies(falco ${FALCO_DEPENDENCIES}) +add_dependencies(falco_application ${FALCO_DEPENDENCIES}) target_link_libraries( - falco + falco_application ${FALCO_LIBRARIES} ) target_include_directories( - falco + falco_application PUBLIC ${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) add_custom_command( TARGET falco