From 152c44ffb96143683a7fdaabac1c747aaf6ad0dc Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 7 Sep 2023 14:36:23 +0200 Subject: apps: split apps into directories --- source/app/CMakeLists.txt | 51 ++--------------------------------------------- 1 file changed, 2 insertions(+), 49 deletions(-) (limited to 'source/app/CMakeLists.txt') diff --git a/source/app/CMakeLists.txt b/source/app/CMakeLists.txt index 175a901..1ac7ab1 100644 --- a/source/app/CMakeLists.txt +++ b/source/app/CMakeLists.txt @@ -2,52 +2,5 @@ include("CheckIPOSupported") check_ipo_supported(RESULT "WANDA_IPO_SUPPORTED") -find_package("lyra") -find_package("spdlog") - -#[=====[ Client ]=====] - -add_executable("wandac" - "src/wandac.cpp" -) - -target_link_libraries("${PROJECT_NAME}c" PRIVATE - "wanda::control" - "wanda::proto" - "wanda::system" - - "bfg::lyra" - "spdlog::spdlog_header_only" -) - -set_target_properties("wandac" PROPERTIES - CXX_STANDARD_REQUIRED YES - CXX_EXTENSIONS OFF - INTERPROCEDURAL_OPTIMIZATION ${WANDA_IPO_SUPPORTED} -) - -install(TARGETS "wandac") - -#[=====[ Server ]=====] - -add_executable("wandad" - "src/wandad.cpp" -) - -target_link_libraries("wandad" PRIVATE - "wanda::control" - "wanda::proto" - "wanda::std_ext" - "wanda::system" - - "bfg::lyra" - "spdlog::spdlog_header_only" -) - -set_target_properties("wandad" PROPERTIES - CXX_STANDARD_REQUIRED YES - CXX_EXTENSIONS OFF - INTERPROCEDURAL_OPTIMIZATION ${WANDA_IPO_SUPPORTED} -) - -install(TARGETS "wandad") +add_subdirectory("wandac") +add_subdirectory("wandad") \ No newline at end of file -- cgit v1.2.3