summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2025-05-24 12:13:08 +0200
committerFelix Morgner <felix.morgner@gmail.com>2025-05-24 12:13:08 +0200
commit3b34ac3ccbeb62673b37f0c73cc145fede43c404 (patch)
tree7394932681ea2d86db9d9ac63d8fb62c715ae8e7 /CMakeLists.txt
parent72ab1fb4c1bf363f46470816d8b914a78ac493c4 (diff)
downloadturns-3b34ac3ccbeb62673b37f0c73cc145fede43c404.tar.xz
turns-3b34ac3ccbeb62673b37f0c73cc145fede43c404.zip
gui: add basic frame
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