diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2017-11-25 18:00:06 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2017-11-25 18:00:06 +0000 |
| commit | 8453224119a4c5ff7d47d9cd4924d0b1ccb99b3a (patch) | |
| tree | 15d339b62e98d5858a57aa787334e14f0e2f0ad7 /src/app/CMakeLists.txt | |
| parent | 6fc05db7c6de9a51beba754f12ff4ac32859977d (diff) | |
| download | qmmp-8453224119a4c5ff7d47d9cd4924d0b1ccb99b3a.tar.gz qmmp-8453224119a4c5ff7d47d9cd4924d0b1ccb99b3a.tar.bz2 qmmp-8453224119a4c5ff7d47d9cd4924d0b1ccb99b3a.zip | |
copy 1.2 branch to trunk
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7772 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/app/CMakeLists.txt')
| -rw-r--r-- | src/app/CMakeLists.txt | 43 |
1 files changed, 14 insertions, 29 deletions
diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt index e9189d18b..26fabf6df 100644 --- a/src/app/CMakeLists.txt +++ b/src/app/CMakeLists.txt @@ -1,11 +1,6 @@ project(app) -SET(QT_USE_QTNETWORK TRUE) - INCLUDE(UsePkgConfig) -INCLUDE(FindQt4) - -include(${QT_USE_FILE}) ADD_DEFINITIONS( -Wall ) ADD_DEFINITIONS(-DQT_NO_DEBUG) @@ -25,37 +20,27 @@ SET(app_SRCS builtincommandlineoption.cpp main.cpp qmmpstarter.cpp - lxdesupport.cpp - qmmpapplication.cpp ) -SET(app_HDRS lxdesupport.h) - SET(app_RCCS images/images.qrc translations/qmmp_locales.qrc) -QT4_ADD_RESOURCES(app_RCC_SRCS ${app_RCCS}) +QT5_ADD_RESOURCES(app_RCC_SRCS ${app_RCCS}) # Don't forget to include output directory, otherwise # the UI file won't be wrapped! include_directories(${CMAKE_CURRENT_BINARY_DIR}) -ADD_EXECUTABLE(qmmp MACOSX_BUNDLE ${app_SRCS} ${app_RCC_SRCS} ${app_HDRS}) -target_link_libraries(qmmp ${QT_LIBRARIES} libqmmp qmmpui) +ADD_EXECUTABLE(qmmp ${app_SRCS} ${app_RCC_SRCS}) +target_link_libraries(qmmp Qt5::Widgets libqmmp qmmpui) add_dependencies(qmmp qmmpui libqmmp) -IF(${CMAKE_SYSTEM_NAME} MATCHES Darwin) - set(MACOSX_BUNDLE_GUI_IDENTIFIER "com.ylsoftware.qmmp") - set(MACOSX_BUNDLE_ICON_FILE "icons.icns") - install(TARGETS qmmp DESTINATION .) - install(FILES images/mac/icons.icns DESTINATION ./qmmp.app/Contents/Resources) -ELSE() - 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) - IF(USE_DIR_ASSOC) - install(FILES qmmp_enqueue.desktop DESTINATION share/applications) - install(FILES qmmp_dir.desktop DESTINATION share/applications) - ENDIF(USE_DIR_ASSOC) -ENDIF() +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) + +IF(USE_DIR_ASSOC) +install(FILES qmmp_enqueue.desktop DESTINATION share/applications) +install(FILES qmmp_dir.desktop DESTINATION share/applications) +ENDIF(USE_DIR_ASSOC) |
