Added explicit bin install directory for old CMake.

Issue #110.
This commit is contained in:
Muzychenko Andrey 2021-12-20 09:06:32 +03:00
parent e81c6c9d37
commit 0dc6006937

View File

@ -219,7 +219,8 @@ if(WIN32)
endif() endif()
if(UNIX AND NOT APPLE) 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}.desktop" DESTINATION "share/applications")
install(FILES "${PROJECT_NAME}/Icon_16x16.png" DESTINATION install(FILES "${PROJECT_NAME}/Icon_16x16.png" DESTINATION
"share/icons/hicolor/16x16/apps" RENAME "${PROJECT_NAME}.png") "share/icons/hicolor/16x16/apps" RENAME "${PROJECT_NAME}.png")