aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-10-29 16:28:18 +0100
committerPřemysl Eric Janouch <p@janouch.name>2020-10-29 16:28:18 +0100
commit5ffdd26e5966e9a616905017b65c0176a93b3507 (patch)
tree56b07d31ef5265c37c0c75219e8e31a398b78fe2 /CMakeLists.txt
parentbe98666db28012cb16bda863777326dc0afe126d (diff)
downloadsensei-raw-ctl-5ffdd26e5966e9a616905017b65c0176a93b3507.tar.gz
sensei-raw-ctl-5ffdd26e5966e9a616905017b65c0176a93b3507.tar.xz
sensei-raw-ctl-5ffdd26e5966e9a616905017b65c0176a93b3507.zip
Bump minimum CMake version, related clean up
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 5 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8b1dfb1..e16df9b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,5 @@
-cmake_minimum_required (VERSION 2.8.5)
-project (sensei-raw-ctl C)
-set (project_VERSION "1.0")
+cmake_minimum_required (VERSION 3.0)
+project (sensei-raw-ctl VERSION 1.0 LANGUAGES C)
find_package (PkgConfig REQUIRED)
pkg_check_modules (dependencies REQUIRED libusb-1.0)
@@ -51,7 +50,7 @@ if (BUILD_GUI)
target_link_libraries (${PROJECT_NAME}-gui ${gtk3_LIBRARIES})
install (TARGETS ${PROJECT_NAME}-gui
DESTINATION ${CMAKE_INSTALL_BINDIR})
-endif (BUILD_GUI)
+endif ()
find_program (HELP2MAN_EXECUTABLE help2man)
if (NOT HELP2MAN_EXECUTABLE)
@@ -77,18 +76,17 @@ foreach (page ${project_MAN_PAGES})
endforeach ()
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "SteelSeries Sensei Raw 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)