Warning, /system/mycroft-gui/application/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 PROJECT(mycroftguiapp)
0002 include(ECMSetupVersion)
0003 
0004 if (CMAKE_SYSTEM_NAME STREQUAL "Android")
0005     add_subdirectory("android")
0006 
0007     if ($ENV{BUILD_NUMBER})
0008         PROJECT(mycroftguiapp VERSION "0.$ENV{BUILD_NUMBER}")
0009     else()
0010         PROJECT(mycroftguiapp VERSION "0.91")
0011     endif()
0012     
0013     SET(mycroft_gui_app_SRC
0014         main.cpp
0015         appsettings.cpp
0016         speechintent.cpp
0017         keyfilter.cpp
0018     )
0019 else()
0020     PROJECT(mycroftguiapp VERSION "1.0.1")
0021     SET(mycroft_gui_app_SRC
0022         main.cpp
0023         appsettings.cpp
0024         speechintent.cpp
0025     )
0026 endif()
0027 
0028 ecm_setup_version(PROJECT VERSION_HEADER version.h)
0029 
0030 # if (CMAKE_SYSTEM_NAME STREQUAL "Android")
0031 #     set(mycroft_gui_app_EXTRA_LIBS
0032 #         Qt${QT_MAJOR_VERSION}::AndroidExtras
0033 #         Qt${QT_MAJOR_VERSION}::QuickControls2
0034 #         #NOTE: qtsvg is needed for android packaging to work
0035 #         Qt${QT_MAJOR_VERSION}::Svg
0036 #         Qt${QT_MAJOR_VERSION}::WebSockets
0037 #         OpenSSL::SSL
0038 #         Qt${QT_MAJOR_VERSION}::TextToSpeech
0039 #     )
0040 #     qt6_add_resources(mycroft_gui_app_SRC
0041 #         controlsconf.qrc
0042 #     )
0043 # else()
0044 
0045 set(mycroft_gui_app_EXTRA_LIBS
0046     Qt${QT_MAJOR_VERSION}::Widgets
0047     KF6::DBusAddons
0048 )
0049 # endif()
0050 
0051 qt_add_resources(mycroft_gui_app_SRC
0052     qml.qrc
0053 )
0054 
0055 add_executable(mycroft-gui-app ${mycroft_gui_app_SRC})
0056 target_link_libraries(mycroft-gui-app Qt${QT_MAJOR_VERSION}::Core Qt${QT_MAJOR_VERSION}::Quick Qt${QT_MAJOR_VERSION}::WebView ${mycroft_gui_app_EXTRA_LIBS})
0057 
0058 
0059 install(TARGETS mycroft-gui-app ${INSTALL_TARGETS_DEFAULT_ARGS})
0060 install(PROGRAMS ai.mycroft.gui-app.desktop DESTINATION  ${KDE_INSTALL_APPDIR})
0061 
0062 if (CMAKE_SYSTEM_NAME STREQUAL "Android")
0063     find_package(KF6Kirigami2 REQUIRED)
0064     kirigami_package_breeze_icons(ICONS help-hint configure media-playback-pause media-playback-start media-seek-forward media-seek-backward audio-input-microphone help-about)
0065 endif()
0066 
0067