aboutsummaryrefslogtreecommitdiff
path: root/source/app/CMakeLists.txt
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2023-09-07 14:36:23 +0200
committerFelix Morgner <felix.morgner@gmail.com>2023-09-07 14:36:23 +0200
commit152c44ffb96143683a7fdaabac1c747aaf6ad0dc (patch)
treec03c530efa97ed721b63416ca854deec25962d20 /source/app/CMakeLists.txt
parent13cf6fe70cc68bd4d803385f5c6d7fe9c7691247 (diff)
downloadwanda-152c44ffb96143683a7fdaabac1c747aaf6ad0dc.tar.xz
wanda-152c44ffb96143683a7fdaabac1c747aaf6ad0dc.zip
apps: split apps into directories
Diffstat (limited to 'source/app/CMakeLists.txt')
-rw-r--r--source/app/CMakeLists.txt51
1 files changed, 2 insertions, 49 deletions
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