From f3e3ab4911e896572ad51e895c2d021eaaedaf12 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Thu, 19 Jan 2023 10:09:07 +0100 Subject: Add tests and improve interface --- tests/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/CMakeLists.txt (limited to 'tests/CMakeLists.txt') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt new file mode 100644 index 0000000..abbe651 --- /dev/null +++ b/tests/CMakeLists.txt @@ -0,0 +1,11 @@ + +# Configure catch3 +include_directories(./catch3/) +add_library(cmi_catch3 SHARED ./catch3/catch_amalgamated.cpp) + +# Add tests +add_executable(cmi_tests cmi_tests.cpp) +target_link_libraries(cmi_tests ChessMoveInterface cmi_catch3) +add_test(CMI_TESTS cmi_tests) + + -- cgit v1.2.3