summaryrefslogtreecommitdiff
path: root/src/ipcpd
diff options
context:
space:
mode:
authorThijs Paelman <thijs@ouroboros.rocks>2025-11-03 22:40:55 +0100
committerSander Vrijders <sander@ouroboros.rocks>2025-11-07 08:35:48 +0100
commited8a62f1cdca19c09caf52f2e36f45dafaa9cff8 (patch)
treee3bde26d332953eb205885a37870068bd5e3a11f /src/ipcpd
parent181739aa4571b8707160b946f1e1e3a92a3c3e3b (diff)
downloadouroboros-ed8a62f1cdca19c09caf52f2e36f45dafaa9cff8.tar.gz
ouroboros-ed8a62f1cdca19c09caf52f2e36f45dafaa9cff8.zip
build: Only add tests when BUILD_TESTING is ON
By default, BUILD_TESTING = ON due to the inclusion of the CTest module. Signed-off-by: Thijs Paelman <thijs@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd')
-rw-r--r--src/ipcpd/local/CMakeLists.txt4
-rw-r--r--src/ipcpd/unicast/CMakeLists.txt8
2 files changed, 8 insertions, 4 deletions
diff --git a/src/ipcpd/local/CMakeLists.txt b/src/ipcpd/local/CMakeLists.txt
index 08abff57..f661e9ae 100644
--- a/src/ipcpd/local/CMakeLists.txt
+++ b/src/ipcpd/local/CMakeLists.txt
@@ -31,4 +31,6 @@ endif ()
install(TARGETS ipcpd-local RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR})
# Enable once ipcp-local has tests
-# add_subdirectory(tests)
+# if(BUILD_TESTS)
+# add_subdirectory(tests)
+# endif ()
diff --git a/src/ipcpd/unicast/CMakeLists.txt b/src/ipcpd/unicast/CMakeLists.txt
index ced045e6..a9155353 100644
--- a/src/ipcpd/unicast/CMakeLists.txt
+++ b/src/ipcpd/unicast/CMakeLists.txt
@@ -71,6 +71,8 @@ endif ()
install(TARGETS ipcpd-unicast RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR})
-add_subdirectory(pff/tests)
-add_subdirectory(routing/tests)
-add_subdirectory(dir/tests)
+if(BUILD_TESTS)
+ add_subdirectory(pff/tests)
+ add_subdirectory(routing/tests)
+ add_subdirectory(dir/tests)
+endif ()