summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 069d00a..cca9610 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -2,6 +2,15 @@ project(mossrose)
target_sources(mossrose PUBLIC
${CMAKE_CURRENT_LIST_DIR}/mossrose.c
- ${CMAKE_CURRENT_LIST_DIR}/mutex.c
${CMAKE_CURRENT_LIST_DIR}/channel.c
)
+
+
+if (MOSSROSE_BUILD_TESTS)
+ target_sources(test PUBLIC
+ ${CMAKE_CURRENT_LIST_DIR}/test/lily-test.c
+ ${CMAKE_CURRENT_LIST_DIR}/test/mossrose-test.c
+ ${CMAKE_CURRENT_LIST_DIR}/channel.test.c
+ ${CMAKE_CURRENT_LIST_DIR}/sound.test.c
+ )
+endif()