summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/EnableCoverage.cmake3
-rw-r--r--cmake/Modules/GlibCompileResources.cmake3
-rw-r--r--cmake/Modules/GlibCompileSchemas.cmake3
-rw-r--r--cmake/Modules/GlibIntrospection.cmake3
-rw-r--r--cmake/Modules/GlibMkenums.cmake3
5 files changed, 15 insertions, 0 deletions
diff --git a/cmake/Modules/EnableCoverage.cmake b/cmake/Modules/EnableCoverage.cmake
index 74dfe38..dcf6c5f 100644
--- a/cmake/Modules/EnableCoverage.cmake
+++ b/cmake/Modules/EnableCoverage.cmake
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+# SPDX-License-Identifier: LGPL-2.1-only
+
function(enable_coverage TARGET)
target_compile_options("${TARGET}" PRIVATE
"$<$<AND:$<CXX_COMPILER_ID:GNU,Clang>,$<CONFIG:Debug>>:-fcondition-coverage>"
diff --git a/cmake/Modules/GlibCompileResources.cmake b/cmake/Modules/GlibCompileResources.cmake
index 8d10c1a..3922b92 100644
--- a/cmake/Modules/GlibCompileResources.cmake
+++ b/cmake/Modules/GlibCompileResources.cmake
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+# SPDX-License-Identifier: LGPL-2.1-only
+
find_program(GLIB_COMPILE_RESOURCES
NAMES "glib-compile-resources"
REQUIRED
diff --git a/cmake/Modules/GlibCompileSchemas.cmake b/cmake/Modules/GlibCompileSchemas.cmake
index 1ffbd39..90f6a10 100644
--- a/cmake/Modules/GlibCompileSchemas.cmake
+++ b/cmake/Modules/GlibCompileSchemas.cmake
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+# SPDX-License-Identifier: LGPL-2.1-only
+
find_program(GLIB_COMPILE_SCHEMAS_BIN
NAMES "glib-compile-schemas"
REQUIRED
diff --git a/cmake/Modules/GlibIntrospection.cmake b/cmake/Modules/GlibIntrospection.cmake
index ffec754..f2f1b91 100644
--- a/cmake/Modules/GlibIntrospection.cmake
+++ b/cmake/Modules/GlibIntrospection.cmake
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+# SPDX-License-Identifier: LGPL-2.1-only
+
include_guard()
find_program(G_IR_SCANNER_BIN
diff --git a/cmake/Modules/GlibMkenums.cmake b/cmake/Modules/GlibMkenums.cmake
index c3d75e6..f3f29d9 100644
--- a/cmake/Modules/GlibMkenums.cmake
+++ b/cmake/Modules/GlibMkenums.cmake
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>
+# SPDX-License-Identifier: LGPL-2.1-only
+
include_guard()
find_program(GLIB_MKENUMS_BIN