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