forked from afrimberger/okularplugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
49 lines (34 loc) · 1.02 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
44
45
46
47
48
49
project(okularplugin)
FIND_PACKAGE(KDE4 REQUIRED)
INCLUDE(KDE4Defaults)
INCLUDE_DIRECTORIES(
${KDE4_INCLUDES} . qtbrowserplugin
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
)
add_definitions(
${QT_DEFINITIONS}
${KDE4_DEFINITIONS}
)
set(okularplugin_UIS
progresswidget.ui
)
set(okularplugin_SRCS
partwin.cpp
progresswidget.cpp
qtbrowserplugin/qtbrowserplugin.cpp
qtbrowserplugin/qtbrowserplugin_x11.cpp
)
#
# proper handling of RPATH:
SET(CMAKE_SKIP_RPATH TRUE)
# this will run uic on .ui files:
QT4_WRAP_UI( okularplugin_UI_HDRS ${okularplugin_UIS} )
kde4_add_library(okularplugin SHARED ${okularplugin_SRCS} ${okularplugin_UI_HDRS})
target_link_libraries(okularplugin ${QT_QTGUI_LIBRARY} ${KDE4_KDEUI_LIBS} ${KDE4_KPARTS_LIBS})
########### install files ###############
install(TARGETS okularplugin DESTINATION ${KDE4_LIB_INSTALL_DIR} )
install( FILES okularpluginui.rc
DESTINATION ${DATA_INSTALL_DIR}/okularplugin )
install( FILES okularplugin_okularui.rc
DESTINATION ${DATA_INSTALL_DIR}/okularplugin )