diff options
author | Dominic Radermacher <dominic@familie-radermacher.ch> | 2021-10-11 11:50:54 +0200 |
---|---|---|
committer | Dominic Radermacher <dominic@familie-radermacher.ch> | 2021-10-11 11:50:54 +0200 |
commit | f74d06877601cc63763b0788bd658aca142e717f (patch) | |
tree | 70fb09c0cb1b1dfe1ba2b1870fcf2fad86b9ff8d | |
parent | a2d2548867bdbc1ea675287f4420ddc35bfd39c3 (diff) |
add install target
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d5318ae..757f557 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake") # Configure required dependencies find_package(Gettext REQUIRED) find_package(GD REQUIRED) +find_package(Git REQUIRED) find_package(PkgConfig REQUIRED) find_package(Intl REQUIRED) @@ -63,3 +64,11 @@ ADD_CUSTOM_COMMAND( ${CMAKE_BINARY_DIR}/_version.h COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/gitversion.cmake) + +include(GNUInstallDirs) +set(CMAKE_INSTALL_PREFIX "/usr") + +install(TARGETS ptouch-print +) + +INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/ptouch-print.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) |