From 5245c295d8ff79c95ef9d1dcd7198d88613fcc04 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 1 Jul 2018 11:05:55 +0000 Subject: feature to change application name git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8077 90c681e8-e032-0410-971d-27865f9a5e38 --- src/app/CMakeLists.txt | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/app/CMakeLists.txt') diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt index 7736b85a2..f752e2483 100644 --- a/src/app/CMakeLists.txt +++ b/src/app/CMakeLists.txt @@ -31,16 +31,19 @@ QT5_ADD_RESOURCES(app_RCC_SRCS ${app_RCCS}) include_directories(${CMAKE_CURRENT_BINARY_DIR}) ADD_EXECUTABLE(qmmp ${app_SRCS} ${app_RCC_SRCS}) -target_link_libraries(qmmp Qt5::Widgets libqmmp qmmpui) -add_dependencies(qmmp qmmpui libqmmp) +target_link_libraries(qmmp Qt5::Widgets libqmmp libqmmpui) +SET_TARGET_PROPERTIES(qmmp PROPERTIES OUTPUT_NAME qmmp${APP_NAME_SUFFIX}) +add_dependencies(qmmp libqmmpui libqmmp) + install(TARGETS qmmp DESTINATION bin) install(FILES qmmp.desktop DESTINATION share/applications) -install(FILES images/16x16/qmmp.png DESTINATION share/icons/hicolor/16x16/apps) -install(FILES images/32x32/qmmp.png DESTINATION share/icons/hicolor/32x32/apps) -install(FILES images/48x48/qmmp.png DESTINATION share/icons/hicolor/48x48/apps) -install(FILES images/scalable/qmmp.svgz images/scalable/qmmp-simple.svgz DESTINATION share/icons/hicolor/scalable/apps) +install(FILES qmmp${APP_NAME_SUFFIX}.desktop DESTINATION share/applications) +install(FILES images/16x16/qmmp${APP_NAME_SUFFIX}.png DESTINATION share/icons/hicolor/16x16/apps) +install(FILES images/32x32/qmmp${APP_NAME_SUFFIX}.png DESTINATION share/icons/hicolor/32x32/apps) +install(FILES images/48x48/qmmp${APP_NAME_SUFFIX}.png DESTINATION share/icons/hicolor/48x48/apps) +install(FILES images/scalable/qmmp${APP_NAME_SUFFIX}.svgz images/scalable/qmmp-simple${APP_NAME_SUFFIX}.svgz DESTINATION share/icons/hicolor/scalable/apps) IF(USE_DIR_ASSOC) -install(FILES qmmp-enqueue.desktop DESTINATION share/applications) -install(FILES qmmp-dir.desktop DESTINATION share/applications) + install(FILES qmmp-enqueue${APP_NAME_SUFFIX}.desktop DESTINATION share/applications) + install(FILES qmmp-dir${APP_NAME_SUFFIX}.desktop DESTINATION share/applications) ENDIF(USE_DIR_ASSOC) -- cgit v1.2.3-13-gbd6f