diff options
-rw-r--r-- | CMakeLists.txt | 10 | ||||
-rw-r--r-- | README.adoc | 13 | ||||
-rw-r--r-- | config.h.in | 2 |
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 |