Warning, /education/minuet/src/app/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 set(minuet_SRCS
0002 main.cpp
0003 core.cpp
0004 uicontroller.cpp
0005 plugincontroller.cpp
0006 exercisecontroller.cpp
0007 )
0008
0009 qt_add_resources(minuet_SRCS qml.qrc)
0010
0011 IF(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Android")
0012 set(minuet_ICONS_PNG
0013 ${CMAKE_CURRENT_SOURCE_DIR}/icons/16-apps-minuet.png
0014 ${CMAKE_CURRENT_SOURCE_DIR}/icons/22-apps-minuet.png
0015 ${CMAKE_CURRENT_SOURCE_DIR}/icons/32-apps-minuet.png
0016 ${CMAKE_CURRENT_SOURCE_DIR}/icons/48-apps-minuet.png
0017 ${CMAKE_CURRENT_SOURCE_DIR}/icons/64-apps-minuet.png
0018 ${CMAKE_CURRENT_SOURCE_DIR}/icons/128-apps-minuet.png
0019 )
0020
0021 set(minuet_ICONS_SVG
0022 ${CMAKE_CURRENT_SOURCE_DIR}/icons/sc-apps-minuet.svgz
0023 ${CMAKE_CURRENT_SOURCE_DIR}/icons/16-apps-minuet.svg
0024 ${CMAKE_CURRENT_SOURCE_DIR}/icons/22-apps-minuet.svg
0025 ${CMAKE_CURRENT_SOURCE_DIR}/icons/32-apps-minuet.svg
0026 ${CMAKE_CURRENT_SOURCE_DIR}/icons/48-apps-minuet.svg
0027 ${CMAKE_CURRENT_SOURCE_DIR}/icons/64-apps-minuet.svg
0028 ${CMAKE_CURRENT_SOURCE_DIR}/icons/128-apps-minuet.svg
0029 ${CMAKE_CURRENT_SOURCE_DIR}/icons/16-actions-minuet-scales.svg
0030 ${CMAKE_CURRENT_SOURCE_DIR}/icons/16-actions-minuet-intervals.svg
0031 ${CMAKE_CURRENT_SOURCE_DIR}/icons/16-actions-minuet-chords.svg
0032 ${CMAKE_CURRENT_SOURCE_DIR}/icons/16-actions-minuet-rhythms.svg
0033 ${CMAKE_CURRENT_SOURCE_DIR}/icons/22-actions-minuet-scales.svg
0034 ${CMAKE_CURRENT_SOURCE_DIR}/icons/22-actions-minuet-intervals.svg
0035 ${CMAKE_CURRENT_SOURCE_DIR}/icons/22-actions-minuet-chords.svg
0036 ${CMAKE_CURRENT_SOURCE_DIR}/icons/22-actions-minuet-rhythms.svg
0037 )
0038
0039 ecm_add_app_icon(minuet_SRCS ICONS ${minuet_ICONS_PNG})
0040 ecm_install_icons(ICONS ${minuet_ICONS_PNG} ${minuet_ICONS_SVG} DESTINATION ${KDE_INSTALL_ICONDIR} THEME hicolor)
0041 ENDIF(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Android")
0042
0043 if(ANDROID)
0044 include(../../cmake/qt-android-mk-apk.cmake)
0045 add_library(minuet SHARED ${minuet_SRCS})
0046 qt_android_build_apk(
0047 TARGET ${PROJECT_NAME}
0048 PACKAGE_NAME org.kde.minuet
0049 QML_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}
0050 ANDROID_EXTRA_FILES ${CMAKE_CURRENT_SOURCE_DIR}/../../android
0051 EXTRA_LIBS ../plugins/csoundsoundcontroller/libminuetcsoundsoundcontroller.so,../interfaces/libminuetinterfaces.so,../../src/plugins/csoundsoundcontroller/Csound-prefix/src/Csound/Android/CsoundAndroid/libs/arm64-v8a/libcsoundandroid.so,../../src/plugins/csoundsoundcontroller/Csound-prefix/src/Csound/Android/CsoundAndroid/libs/arm64-v8a/libsndfile.so,../../src/plugins/csoundsoundcontroller/Csound-prefix/src/Csound/Android/pluginlibs/libfluidsynth/libs/arm64-v8a/libfluidOpcodes.so,../../src/plugins/csoundsoundcontroller/Csound-prefix/src/Csound/Android/CsoundAndroid/libs/arm64-v8a/libc++_shared.so
0052 )
0053 else()
0054 add_executable(minuet ${minuet_SRCS})
0055 endif()
0056
0057 target_link_libraries(minuet
0058 Qt::Core
0059 Qt::Gui
0060 Qt::Qml
0061 Qt::Quick
0062 Qt::QuickControls2
0063 Qt::Svg
0064 Minuet::Interfaces
0065 Minuet::Utils
0066 )
0067
0068 if(ANDROID)
0069 target_link_libraries(minuet
0070 Minuet::CsoundSoundController
0071 )
0072 endif()
0073
0074 IF(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Android")
0075 target_link_libraries(minuet
0076 KF${KF_MAJOR_VERSION}::CoreAddons
0077 KF${KF_MAJOR_VERSION}::I18n
0078 KF${KF_MAJOR_VERSION}::Crash
0079 )
0080 ENDIF(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Android")
0081
0082 IF(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Android")
0083 install(TARGETS minuet ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0084 install(PROGRAMS org.kde.minuet.desktop DESTINATION ${KDE_INSTALL_APPDIR})
0085 ENDIF(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Android")