Changeset View
Changeset View
Standalone View
Standalone View
sfos/CMakeLists.txt
- This file was added.
1 | find_package(Qt5 5.2 REQUIRED COMPONENTS DBus) | ||||
---|---|---|---|---|---|
2 | | ||||
3 | pkg_check_modules(NNQT5 REQUIRED nemonotifications-qt5) | ||||
4 | include_directories(${NNQT5_INCLUDE_DIRS}) | ||||
5 | | ||||
6 | set(kdeconnectsfos_SRCS | ||||
7 | kdeconnect-sfos.cpp | ||||
8 | ../plasmoid/declarativeplugin/kdeconnectdeclarativeplugin.cpp | ||||
9 | ../plasmoid/declarativeplugin/responsewaiter.cpp | ||||
10 | ) | ||||
11 | | ||||
12 | #find_package(KF5 COMPONENTS Declarative) | ||||
13 | | ||||
14 | #qt5_add_resources(kcapp_SRCS resources.qrc) | ||||
15 | qt5_wrap_cpp(kdeconnectsfos_SRCS ../plasmoid/declarativeplugin/objectfactory.h) | ||||
16 | | ||||
17 | add_executable(kdeconnect-sfos ${kdeconnectsfos_SRCS}) | ||||
18 | target_link_libraries(kdeconnect-sfos Qt5::Quick KF5::CoreAddons KF5::I18n sailfishapp Qt5::DBus kdeconnectinterfaces ${NNQT5_LIBRARIES}) | ||||
19 | | ||||
20 | install(TARGETS kdeconnect-sfos ${INSTALL_TARGETS_DEFAULT_ARGS}) | ||||
21 | install(PROGRAMS kdeconnect-sfos.desktop DESTINATION ${XDG_APPS_INSTALL_DIR}) | ||||
22 | INSTALL( DIRECTORY qml DESTINATION ${SHARE_INSTALL_PREFIX}/kdeconnect-sfos/ ) | ||||
23 | |