summaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-01-29 11:52:47 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-01-29 11:52:47 +0100
commite9d328acf4ee45bd8771d422fa4db40298e6e16a (patch)
tree68a86c53539fe57b434c49555feafac9081f75e0 /tests/CMakeLists.txt
Init project
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
new file mode 100644
index 0000000..b897f9a
--- /dev/null
+++ b/tests/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Configure catch3
+include_directories(./catch3/)
+add_library(catch3 SHARED ./catch3/catch_amalgamated.cpp)
+
+# Add tests
+add_executable(fen_tests fen.cpp)
+target_link_libraries(fen_tests chessarbiter catch3)
+add_test(Fen_Test fen_tests)
+
+add_executable(board_tests board.cpp)
+target_link_libraries(board_tests chessarbiter catch3)
+add_test(Board_Test board_tests)
+
+add_executable(chessarbiter_tests chessarbiter.cpp)
+target_link_libraries(chessarbiter_tests chessarbiter catch3)
+add_test(ChessArbiter_Test chessarbiter_tests)
+