aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-07-05 00:38:32 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-07-05 00:38:32 +0200
commitf85f79d6ad1efc02b991922633ad7d52b0c2ac42 (patch)
tree8a81e68dc9b73c16fca12be7a665b5ce3b35d906
parent942a5135301ac53364ad37b8ef6b9ff101ee95fe (diff)
downloadrazer-bw-te-ctl-f85f79d6ad1efc02b991922633ad7d52b0c2ac42.tar.gz
razer-bw-te-ctl-f85f79d6ad1efc02b991922633ad7d52b0c2ac42.tar.xz
razer-bw-te-ctl-f85f79d6ad1efc02b991922633ad7d52b0c2ac42.zip
Synchronize with sensei-raw-ctl
-rw-r--r--CMakeLists.txt10
-rw-r--r--README.adoc13
-rw-r--r--config.h.in2
3 files changed, 11 insertions, 14 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bb7fa5d..667de22 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,5 @@
-cmake_minimum_required (VERSION 2.8.5)
-project (razer-bw-te-ctl C)
-set (project_VERSION "1.0")
+cmake_minimum_required (VERSION 3.0)
+project (razer-bw-te-ctl VERSION 1.0 LANGUAGES C)
find_package (PkgConfig REQUIRED)
pkg_check_modules (dependencies REQUIRED libusb-1.0)
@@ -40,18 +39,17 @@ endforeach ()
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY
"Razer BlackWidow Tournament Edition control utility")
-set (CPACK_PACKAGE_VERSION ${project_VERSION})
set (CPACK_PACKAGE_VENDOR "Premysl Eric Janouch")
set (CPACK_PACKAGE_CONTACT "Přemysl Eric Janouch <p@janouch.name>")
set (CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
set (CPACK_GENERATOR "TGZ;ZIP")
set (CPACK_PACKAGE_FILE_NAME
- "${PROJECT_NAME}-${project_VERSION}-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
+ "${PROJECT_NAME}-${PROJECT_VERSION}-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
set (CPACK_SOURCE_GENERATOR "TGZ;ZIP")
set (CPACK_SOURCE_IGNORE_FILES "/\\\\.git;/build;/CMakeLists.txt.user")
-set (CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-${project_VERSION}")
+set (CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-${PROJECT_VERSION}")
set (CPACK_SET_DESTDIR TRUE)
include (CPack)
diff --git a/README.adoc b/README.adoc
index f9f92d5..c97be21 100644
--- a/README.adoc
+++ b/README.adoc
@@ -13,18 +13,20 @@ Run `razer-bw-te-ctl --help` or `man razer-bw-te-ctl` for usage information.
Packages
--------
-Regular releases are sporadic. git master should be stable enough. You can get
-a package with the latest development version from Archlinux's AUR.
+Regular releases are sporadic. git master should be stable enough.
+You can get a package with the latest development version using Arch Linux's
+https://aur.archlinux.org/packages/razer-bw-te-ctl-git[AUR],
+or as a https://git.janouch.name/p/nixexprs[Nix derivation].
Installation
------------
-Build dependencies: cmake >= 2.8.5, help2man +
+Build dependencies: cmake >= 3.0, help2man +
Runtime dependencies: libusb >= 1.0
$ git clone https://git.janouch.name/p/razer-bw-te-ctl.git
$ mkdir razer-bw-te-ctl/build
$ cd razer-bw-te-ctl/build
- $ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
+ $ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug
# make install
Note that there's no `make uninstall`.
@@ -34,9 +36,6 @@ For Debian-based distros, you can do the following instead of the last step:
$ cpack -G DEB
# dpkg -i razer-bw-te-ctl-*.deb
-Note that for versions of CMake before 2.8.9, you need to prefix `cpack` with
-`fakeroot` or file ownership will end up wrong.
-
Contributing and Support
------------------------
Use https://git.janouch.name/p/razer-bw-te-ctl to report bugs, request features,
diff --git a/config.h.in b/config.h.in
index 49193ff..67de2c0 100644
--- a/config.h.in
+++ b/config.h.in
@@ -2,6 +2,6 @@
#define CONFIG_H
#define PROJECT_NAME "${CMAKE_PROJECT_NAME}"
-#define PROJECT_VERSION "${project_VERSION}"
+#define PROJECT_VERSION "${PROJECT_VERSION}"
#endif // ! CONFIG_H