Warning, /network/kdeconnect-kde/indicator/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 add_definitions(-DTRANSLATION_DOMAIN=\"kdeconnect-indicator\")
0002 
0003 qt_add_resources(kdeconnect_custom_icons_SRCS ${CMAKE_SOURCE_DIR}/icons/custom_icons.qrc)
0004 
0005 set(indicator_SRCS
0006     main.cpp
0007     deviceindicator.cpp
0008     ${kdeconnect_custom_icons_SRCS}
0009     ${CMAKE_CURRENT_SOURCE_DIR}/systray_actions/battery_action.cpp
0010     ${CMAKE_CURRENT_SOURCE_DIR}/systray_actions/connectivity_action.cpp
0011 )
0012 
0013 include(ECMAddAppIcon)
0014 
0015 ecm_add_app_icon(indicator_SRCS ICONS
0016     ${CMAKE_SOURCE_DIR}/icons/app/sc-apps-kdeconnect.svg
0017     ${CMAKE_SOURCE_DIR}/icons/app/16-apps-kdeconnect.png
0018     ${CMAKE_SOURCE_DIR}/icons/app/24-apps-kdeconnect.png
0019     ${CMAKE_SOURCE_DIR}/icons/app/32-apps-kdeconnect.png
0020     ${CMAKE_SOURCE_DIR}/icons/app/48-apps-kdeconnect.png
0021     ${CMAKE_SOURCE_DIR}/icons/app/64-apps-kdeconnect.png
0022     ${CMAKE_SOURCE_DIR}/icons/app/128-apps-kdeconnect.png
0023     ${CMAKE_SOURCE_DIR}/icons/app/256-apps-kdeconnect.png
0024     ${CMAKE_SOURCE_DIR}/icons/app/1024-apps-kdeconnect.png
0025 )
0026 
0027 if (WIN32)
0028     list(APPEND indicator_SRCS indicatorhelper_win.cpp)
0029 elseif (APPLE)
0030     list(APPEND indicator_SRCS indicatorhelper_mac.cpp serviceregister_mac.mm)
0031 else ()
0032     list(APPEND indicator_SRCS indicatorhelper.cpp)
0033 endif()
0034 
0035 add_executable(kdeconnect-indicator ${indicator_SRCS})
0036 
0037 ecm_qt_declare_logging_category(kdeconnect-indicator
0038     HEADER indicator_debug.h
0039     IDENTIFIER KDECONNECT_INDICATOR CATEGORY_NAME kdeconnect.indicator
0040     DEFAULT_SEVERITY Warning
0041     EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (indicator)")
0042 
0043 
0044 target_include_directories(kdeconnect-indicator PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/systray_actions)
0045 
0046 target_link_libraries(kdeconnect-indicator Qt::Widgets KF6::CoreAddons KF6::I18n KF6::Notifications KF6::DBusAddons KF6::KCMUtils kdeconnectinterfaces kdeconnectcore kdeconnectversion)
0047 
0048 if (WIN32)
0049     target_link_libraries(kdeconnect-indicator windowsapp)
0050 else()
0051     target_link_libraries(kdeconnect-indicator KF6::StatusNotifierItem)
0052 endif()
0053 
0054 if (APPLE)
0055 # Apple frameworks
0056 target_link_libraries(kdeconnect-indicator "-framework AppKit")
0057 # Apple app package
0058 set_target_properties(kdeconnect-indicator PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist)
0059 set_target_properties(kdeconnect-indicator PROPERTIES
0060     MACOSX_BUNDLE_BUNDLE_NAME "KDE Connect"
0061     MACOSX_BUNDLE_LONG_VERSION_STRING "${KDECONNECT_VERSION_STRING}"
0062     MACOSX_BUNDLE_SHORT_VERSION_STRING "${KDECONNECT_VERSION_MAJOR}.${KDECONNECT_VERSION_MINOR}.${KDECONNECT_VERSION_PATCH}"
0063     MACOSX_BUNDLE_GUI_IDENTIFIER "org.kde.kdeconnect")
0064 endif()
0065 
0066 install(TARGETS kdeconnect-indicator ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0067 install(PROGRAMS org.kde.kdeconnect.nonplasma.desktop DESTINATION ${KDE_INSTALL_APPDIR})