summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt21
1 files changed, 20 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b56670c..dc106d2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION "3.31.0")
project("turns"
LANGUAGES C CXX
- DESCRIPTION "A simple turn order tracker"
+ DESCRIPTION "A simple turn order tracker and support library"
VERSION "1.0.0"
)
@@ -17,8 +17,26 @@ enable_testing()
include("CheckIPOSupported")
include("EnableCoverage")
+include("FetchContent")
include("GNUInstallDirs")
+# Global Dependencies
+
+add_subdirectory("deps/libadwaitamm" SYSTEM)
+
+FetchContent_Declare(
+ "Catch2"
+ URL "https://github.com/catchorg/Catch2/archive/refs/tags/v3.6.0.tar.gz"
+ URL_HASH "SHA256=485932259a75c7c6b72d4b874242c489ea5155d17efa345eb8cc72159f49f356"
+ EXCLUDE_FROM_ALL
+ SYSTEM
+ FIND_PACKAGE_ARGS
+)
+
+FetchContent_MakeAvailable("Catch2")
+
+include("Catch")
+
# Global Settings
set(TURNS_GLIB_MINIMUM_VERSION "2.84")
@@ -26,6 +44,7 @@ check_ipo_supported(RESULT TURNS_CAN_DO_IPO LANGUAGES CXX)
# Sub projects
+add_subdirectory("gui")
add_subdirectory("lib" SYSTEM)
# License