-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
43 lines (35 loc) · 1.1 KB
/
CMakeLists.txt
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
# Project Needs a name ofcourse
project(plasma-ydpd)
# Define PLASMA macro
add_definitions(-DPLASMA)
# Find the required Libaries
find_package(KDE4 REQUIRED)
include(KDE4Defaults)
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories(
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${KDE4_INCLUDES}
)
# We add our source code here
set(ydpd_SRCS plasma-ydpd.cpp
config.cpp
configtabdialog.cpp
dictinstance.cpp
configmanager.cpp
dict.cpp
dictmanager.cpp
pathswidget.cpp
ydpd.cpp
)
# Now make sure all files get to the right place
qt4_add_resources(ydpd_RSCS Ydpd.qrc)
kde4_add_ui_files(ydpd_RSCS ydpdForm.ui startupForm.ui pathsForm.ui historyForm.ui)
kde4_add_plugin(plasma_applet_ydpd ${ydpd_SRCS} ${ydpd_RSCS})
target_link_libraries(plasma_applet_ydpd
${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS}
${KDE4_KIO_LIBS} ydpdict phonon)
install(TARGETS plasma_applet_ydpd
DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES plasma-applet-ydpd.desktop
DESTINATION ${SERVICES_INSTALL_DIR})