aboutsummaryrefslogtreecommitdiff
path: root/source/app/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'source/app/CMakeLists.txt')
-rw-r--r--source/app/CMakeLists.txt41
1 files changed, 27 insertions, 14 deletions
diff --git a/source/app/CMakeLists.txt b/source/app/CMakeLists.txt
index a224b57..7fd46c2 100644
--- a/source/app/CMakeLists.txt
+++ b/source/app/CMakeLists.txt
@@ -2,42 +2,55 @@ include("CheckIPOSupported")
check_ipo_supported(RESULT "WANDA_IPO_SUPPORTED")
+find_package("asio")
find_package("lyra")
+find_package("spdlog")
-#[=====[ Server ]=====]
+#[=====[ Client ]=====]
-add_executable("wandad"
- "src/wandad.cpp"
+add_executable("wandac"
+ "src/wandac.cpp"
)
-target_link_libraries("wandad" PRIVATE
+target_link_libraries("${PROJECT_NAME}c" PRIVATE
+ "wanda::control"
+ "wanda::proto"
+ "wanda::system"
+
+ "asio::asio"
"bfg::lyra"
- "wanda::wanda"
+ "spdlog::spdlog"
)
-set_target_properties("wandad" PROPERTIES
+set_target_properties("wandac" PROPERTIES
CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS OFF
INTERPROCEDURAL_OPTIMIZATION ${WANDA_IPO_SUPPORTED}
)
-install(TARGETS "wandad")
+install(TARGETS "wandac")
-#[=====[ Client ]=====]
+#[=====[ Server ]=====]
-add_executable("wandac"
- "src/wandac.cpp"
+add_executable("wandad"
+ "src/wandad.cpp"
)
-target_link_libraries("${PROJECT_NAME}c" PRIVATE
+target_link_libraries("wandad" PRIVATE
+ "wanda::control"
+ "wanda::proto"
+ "wanda::std_ext"
+ "wanda::system"
+
+ "asio::asio"
"bfg::lyra"
- "wanda::wanda"
+ "spdlog::spdlog"
)
-set_target_properties("wandac" PROPERTIES
+set_target_properties("wandad" PROPERTIES
CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS OFF
INTERPROCEDURAL_OPTIMIZATION ${WANDA_IPO_SUPPORTED}
)
-install(TARGETS "wandac") \ No newline at end of file
+install(TARGETS "wandad")