diff options
| author | Lexi Winter <lexi@le-fay.org> | 2025-06-28 17:43:28 +0100 |
|---|---|---|
| committer | Lexi Winter <lexi@le-fay.org> | 2025-06-28 17:43:28 +0100 |
| commit | f226d46ee02b57dd76a4793593aa8d66e1c58353 (patch) | |
| tree | acf2aeb5edddb3eef74b9751312cdd417ee63624 /nihil.uuid/CMakeLists.txt | |
| parent | 2df6a302882027ff52162a6c1dd2f67547c1ac31 (diff) | |
| download | nihil-f226d46ee02b57dd76a4793593aa8d66e1c58353.tar.gz nihil-f226d46ee02b57dd76a4793593aa8d66e1c58353.tar.bz2 | |
nihil: move uuid to its own module
Diffstat (limited to 'nihil.uuid/CMakeLists.txt')
| -rw-r--r-- | nihil.uuid/CMakeLists.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/nihil.uuid/CMakeLists.txt b/nihil.uuid/CMakeLists.txt new file mode 100644 index 0000000..fe037e7 --- /dev/null +++ b/nihil.uuid/CMakeLists.txt @@ -0,0 +1,23 @@ +# This source code is released into the public domain. + +add_library(nihil.uuid STATIC) +target_sources(nihil.uuid + PUBLIC FILE_SET modules TYPE CXX_MODULES FILES + uuid.ccm +) + +if(NIHIL_TESTS) + enable_testing() + + add_executable(nihil.uuid.test test.cc) + target_link_libraries(nihil.uuid.test PRIVATE + nihil.uuid + Catch2::Catch2WithMain + ) + + find_package(Catch2 REQUIRED) + + include(CTest) + include(Catch) + catch_discover_tests(nihil.uuid.test) +endif() |
