aboutsummaryrefslogtreecommitdiff
path: root/src/app/CMakeLists.txt
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-07-01 11:05:55 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-07-01 11:05:55 +0000
commit5245c295d8ff79c95ef9d1dcd7198d88613fcc04 (patch)
tree26b4ae1a854d893dbde0eaac78cd19f9707b3554 /src/app/CMakeLists.txt
parentae2b9f6f9fd882f44a253b143aada0dc7cb0264c (diff)
downloadqmmp-5245c295d8ff79c95ef9d1dcd7198d88613fcc04.tar.gz
qmmp-5245c295d8ff79c95ef9d1dcd7198d88613fcc04.tar.bz2
qmmp-5245c295d8ff79c95ef9d1dcd7198d88613fcc04.zip
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
Diffstat (limited to 'src/app/CMakeLists.txt')
-rw-r--r--src/app/CMakeLists.txt19
1 files changed, 11 insertions, 8 deletions
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)