summaryrefslogtreecommitdiff
path: root/src/lib/crc/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2026-04-26 07:56:38 +0200
committerSander Vrijders <sander@ouroboros.rocks>2026-05-06 09:05:02 +0200
commit4cfc607ebbff840991d893a8c0fa3a004caeb416 (patch)
tree5fd8029adab78566a429b55997482c626d6b4542 /src/lib/crc/tests/CMakeLists.txt
parent8b5e03fff17dcfcdd73ed40d950ee998d7e9d9f1 (diff)
downloadouroboros-4cfc607ebbff840991d893a8c0fa3a004caeb416.tar.gz
ouroboros-4cfc607ebbff840991d893a8c0fa3a004caeb416.zip
lib: Move CRC implementations to a subfolder
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/lib/crc/tests/CMakeLists.txt')
-rw-r--r--src/lib/crc/tests/CMakeLists.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/lib/crc/tests/CMakeLists.txt b/src/lib/crc/tests/CMakeLists.txt
new file mode 100644
index 00000000..11daca5a
--- /dev/null
+++ b/src/lib/crc/tests/CMakeLists.txt
@@ -0,0 +1,21 @@
+get_filename_component(PARENT_PATH ${CMAKE_CURRENT_SOURCE_DIR} DIRECTORY)
+get_filename_component(PARENT_DIR ${PARENT_PATH} NAME)
+
+compute_test_prefix()
+
+create_test_sourcelist(${PARENT_DIR}_tests test_suite.c
+ # Add new tests here
+ crc8_test.c
+ crc16_test.c
+ crc32_test.c
+ crc64_test.c
+ )
+
+add_executable(${PARENT_DIR}_test ${${PARENT_DIR}_tests})
+
+disable_test_logging_for_target(${PARENT_DIR}_test)
+target_link_libraries(${PARENT_DIR}_test ouroboros-common)
+
+add_dependencies(build_tests ${PARENT_DIR}_test)
+
+ouroboros_register_tests(TARGET ${PARENT_DIR}_test TESTS ${${PARENT_DIR}_tests})