1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
project(ktp-send-file)
set (KTP_SEND_FILE_VERSION "0.6.80")
set (CMAKE_MODULE_PATH
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules"
${CMAKE_MODULE_PATH}
)
cmake_policy(SET CMP0002 OLD)
set(KDE_MIN_VERSION "4.7.0")
set(IS_KTP_INTERNAL_MODULE TRUE)
find_package(KDE4 REQUIRED)
find_package(TelepathyQt4 0.8.9 REQUIRED)
find_package(KTp REQUIRED)
include(KDE4Defaults)
include(MacroLibrary)
# Add the compiler flags
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories(
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${KDE4_INCLUDES}
${TELEPATHY_QT4_INCLUDE_DIR}
${KTP_INCLUDE_DIR}
)
# Insert your sources here
set(KTP_SEND_FILE_SRCS
mainwindow.cpp
main.cpp
)
set(KTP_SEND_FILE_UI
mainwindow.ui)
configure_file(version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h)
kde4_add_ui_files(KTP_SEND_FILE_SRCS ${KTP_SEND_FILE_UI})
# Create the plasmoid
kde4_add_executable(ktp-send-file ${KTP_SEND_FILE_SRCS})
# Link against the needed libraries
target_link_libraries(ktp-send-file
${TELEPATHY_QT4_LIBRARIES}
${KTP_LIBRARIES}
${KTP_MODELS_LIBRARIES}
${KTP_WIDGETS_LIBRARIES}
${KDE4_KDEUI_LIBS}
${KDE4_KIO_LIBS}
)
install(TARGETS ktp-send-file ${INSTALL_TARGETS_DEFAULT_ARGS})
install(FILES ktp-send-file.desktop DESTINATION ${SERVICES_INSTALL_DIR}/ServiceMenus)
macro_display_feature_log()
|