From 0dc6006937682e84a2b71f4b22ce30452fa1e11a Mon Sep 17 00:00:00 2001 From: Muzychenko Andrey <33288308+k4zmu2a@users.noreply.github.com> Date: Mon, 20 Dec 2021 09:06:32 +0300 Subject: [PATCH] Added explicit bin install directory for old CMake. Issue #110. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b83e8ca..9747f49 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -219,7 +219,8 @@ if(WIN32) endif() if(UNIX AND NOT APPLE) - install(TARGETS "${PROJECT_NAME}" RUNTIME) + include(GNUInstallDirs) + install(TARGETS "${PROJECT_NAME}" RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}") install(FILES "${PROJECT_NAME}.desktop" DESTINATION "share/applications") install(FILES "${PROJECT_NAME}/Icon_16x16.png" DESTINATION "share/icons/hicolor/16x16/apps" RENAME "${PROJECT_NAME}.png")