From 6b82cd6166745505849004cd3ef4a21cfb2336e6 Mon Sep 17 00:00:00 2001 From: Dominic Radermacher Date: Thu, 24 Nov 2022 06:45:01 +0100 Subject: [PATCH] small cosmetic change to CMakeLists.txt --- CMakeLists.txt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 949010d..3a20ddb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,8 @@ project(ptouch-print C) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake") +include(GNUInstallDirs) +set(CMAKE_INSTALL_PREFIX /usr) set(CMAKE_C_STANDARD 11) # Configure required dependencies @@ -64,10 +66,6 @@ add_custom_target(git-version ALL ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/gitversion.cmake ) -include(GNUInstallDirs) -set(CMAKE_INSTALL_PREFIX "/usr") +install(TARGETS ${PROJECT_NAME} DESTINATION bin) -install(TARGETS ptouch-print -) - -INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/ptouch-print.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) +install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/ptouch-print.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)