aboutsummaryrefslogtreecommitdiff
path: root/source/app
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2023-09-08 14:45:54 +0200
committerFelix Morgner <felix.morgner@gmail.com>2023-09-08 14:45:54 +0200
commitb12e0ba49e10e5a511889acf4b6494d18a324194 (patch)
tree375b2704b26499c50d0cbee356e901d5b393a902 /source/app
parentbbda83f674a97e80cf89bff3d12737dd5ecc3243 (diff)
downloadwanda-b12e0ba49e10e5a511889acf4b6494d18a324194.tar.xz
wanda-b12e0ba49e10e5a511889acf4b6494d18a324194.zip
wandac: add tests for the CLI
Diffstat (limited to 'source/app')
-rw-r--r--source/app/wandac/CMakeLists.txt21
1 files changed, 16 insertions, 5 deletions
diff --git a/source/app/wandac/CMakeLists.txt b/source/app/wandac/CMakeLists.txt
index 0a70e5b..71aff36 100644
--- a/source/app/wandac/CMakeLists.txt
+++ b/source/app/wandac/CMakeLists.txt
@@ -1,19 +1,30 @@
-add_executable("wandac"
+add_library("${PROJECT_NAME}c-components" OBJECT
"src/cli.cpp"
"src/listener.cpp"
- "src/main.cpp"
)
-target_include_directories("${PROJECT_NAME}c" PRIVATE
+target_include_directories("${PROJECT_NAME}c-components" PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
)
-target_link_libraries("${PROJECT_NAME}c" PRIVATE
+target_link_libraries("${PROJECT_NAME}c-components" PUBLIC
"wanda::control"
"wanda::proto"
- "wanda::system"
"bfg::lyra"
+ "Boost::headers"
+)
+
+add_executable("wandac"
+ "src/main.cpp"
+)
+
+
+target_link_libraries("${PROJECT_NAME}c" PRIVATE
+ "${PROJECT_NAME}c-components"
+
+ "wanda::system"
+
"spdlog::spdlog_header_only"
)