summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2025-07-20 12:08:23 +0200
committerEugen Wissner <belka@caraus.de>2025-07-20 12:08:23 +0200
commit98856a61d5a51d6390e7d94161643b94acb231a3 (patch)
treef7ed30ddbaa91ebb3131cdf82d8f0e01a6539e6a
parentc21f6d2b64a9a162885e2cd862fea7849534f991 (diff)
downloadslack-timedate-98856a61d5a51d6390e7d94161643b94acb231a3.tar.gz
Set project version
-rw-r--r--CMakeLists.txt19
-rw-r--r--data/CMakeLists.txt15
-rw-r--r--src/CMakeLists.txt15
-rw-r--r--src/main.cpp3
-rw-r--r--src/timedate.cpp3
-rw-r--r--src/timedate.h3
6 files changed, 51 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ae5077d..1c9d1b0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,20 @@
+# Copyright (C) 2013-2025 Eugen Wissner <belka@caraus.de>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
cmake_minimum_required(VERSION 3.21)
-project(slack-timedate)
+project(slack-timedate VERSION 2.1)
include(GNUInstallDirs)
@@ -8,3 +23,5 @@ set(CMAKE_CXX_STANDARD 17)
add_subdirectory(data)
add_subdirectory(src)
+
+set_property(GLOBAL PROPERTY VERSION ${PROJECT_VERSION})
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index 2e8ec92..394989c 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -1,3 +1,18 @@
+# Copyright (C) 2013-2025 Eugen Wissner <belka@caraus.de>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
find_program(SED sed)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/resources.h.in" "resources.h")
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 81bf237..3ce7c6a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,3 +1,18 @@
+# Copyright (C) 2013-2025 Eugen Wissner <belka@caraus.de>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
find_package(PkgConfig)
pkg_check_modules(GDBUS REQUIRED gio-2.0 dbus-1 glibmm-2.4 giomm-2.4)
diff --git a/src/main.cpp b/src/main.cpp
index f57f020..92deafc 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013-2024 Eugen Wissner <belka@caraus.de>
+ * Copyright (C) 2013-2025 Eugen Wissner <belka@caraus.de>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -13,7 +13,6 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
*/
#include "timedate.h"
diff --git a/src/timedate.cpp b/src/timedate.cpp
index c67ab52..3c17ffc 100644
--- a/src/timedate.cpp
+++ b/src/timedate.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013-2024 Eugen Wissner <belka@caraus.de>
+ * Copyright (C) 2013-2025 Eugen Wissner <belka@caraus.de>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -13,7 +13,6 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
*/
#include <cstring>
#include <filesystem>
diff --git a/src/timedate.h b/src/timedate.h
index e197b4b..31d0621 100644
--- a/src/timedate.h
+++ b/src/timedate.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013-2024 Eugen Wissner <belka@caraus.de>
+ * Copyright (C) 2013-2025 Eugen Wissner <belka@caraus.de>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -13,7 +13,6 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
*/
#pragma once