diff options
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) |
