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