diff options
Diffstat (limited to 'gui/CMakeLists.txt')
| -rw-r--r-- | gui/CMakeLists.txt | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt index 389332d..dc7690b 100644 --- a/gui/CMakeLists.txt +++ b/gui/CMakeLists.txt @@ -1,39 +1,12 @@ # SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> # SPDX-License-Identifier: LGPL-2.1-only -cmake_minimum_required(VERSION "4.0.0") - -project("turns-gui" - LANGUAGES C CXX - DESCRIPTION "Turns, the simple turn order tracker" - VERSION "1.0.0" -) - -include("FetchContent") -include("GlibCompileResources") - -find_package("PkgConfig" REQUIRED) - -# Dependencies - -pkg_check_modules("gio" - IMPORTED_TARGET - REQUIRED - "gio-2.0>=${TURNS_GLIB_MINIMUM_VERSION}" -) - -pkg_check_modules("glibmm" - IMPORTED_TARGET - REQUIRED - "glibmm-2.68>=${TURNS_GLIB_MINIMUM_VERSION}" -) - # Resources add_library("resources" STATIC) target_link_libraries("resources" PUBLIC - "PkgConfig::gio" + "PkgConfig::glib" ) target_add_glib_resources("resources" @@ -74,6 +47,8 @@ target_include_directories("gui" PUBLIC target_link_libraries("gui" PUBLIC "adwaitamm::adwaitamm" + "PkgConfig::glib" + "PkgConfig::glibmm" "turns::mm" "$<$<CXX_COMPILER_ID:GNU,Clang>:-Wl,--whole-archive>" |
