aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.ucl/tests/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'nihil.ucl/tests/CMakeLists.txt')
-rw-r--r--nihil.ucl/tests/CMakeLists.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/nihil.ucl/tests/CMakeLists.txt b/nihil.ucl/tests/CMakeLists.txt
new file mode 100644
index 0000000..0257b4f
--- /dev/null
+++ b/nihil.ucl/tests/CMakeLists.txt
@@ -0,0 +1,22 @@
+# This source code is released into the public domain.
+
+add_executable(nihil.ucl.test
+ emit.cc
+ parse.cc
+
+ object.cc
+ array.cc
+ boolean.cc
+ integer.cc
+ map.cc
+ real.cc
+ string.cc
+)
+
+target_link_libraries(nihil.ucl.test PRIVATE nihil.ucl Catch2::Catch2WithMain)
+
+find_package(Catch2 REQUIRED)
+
+include(CTest)
+include(Catch)
+catch_discover_tests(nihil.ucl.test)