Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 50 lines (34 sloc) 1.042 kB
430e3d2 @jeremysanders first commit
authored
1 project(okularplugin)
2
3 FIND_PACKAGE(KDE4 REQUIRED)
4
3a37cea @afrimberger Some minor improvements
afrimberger authored
5 INCLUDE(KDE4Defaults)
6
7 INCLUDE_DIRECTORIES(
8 ${KDE4_INCLUDES} . qtbrowserplugin
9 ${CMAKE_SOURCE_DIR}
10 ${CMAKE_BINARY_DIR}
11 )
12
13 add_definitions(
14 ${QT_DEFINITIONS}
15 ${KDE4_DEFINITIONS}
16 )
430e3d2 @jeremysanders first commit
authored
17
4d413ec @afrimberger Implemented widget for visualizing download progress.
afrimberger authored
18 set(okularplugin_UIS
19 progresswidget.ui
20 )
21
430e3d2 @jeremysanders first commit
authored
22 set(okularplugin_SRCS
4d413ec @afrimberger Implemented widget for visualizing download progress.
afrimberger authored
23 partwin.cpp
24 progresswidget.cpp
25 qtbrowserplugin/qtbrowserplugin.cpp
26 qtbrowserplugin/qtbrowserplugin_x11.cpp
27 )
28
29
431a7a7 @afrimberger Fixed improper handling of RPATH. Thanks cmake...
afrimberger authored
30 #
31 # proper handling of RPATH:
32 SET(CMAKE_SKIP_RPATH TRUE)
33
34
4d413ec @afrimberger Implemented widget for visualizing download progress.
afrimberger authored
35
36 # this will run uic on .ui files:
37 QT4_WRAP_UI( okularplugin_UI_HDRS ${okularplugin_UIS} )
38
430e3d2 @jeremysanders first commit
authored
39
4d413ec @afrimberger Implemented widget for visualizing download progress.
afrimberger authored
40 kde4_add_library(okularplugin SHARED ${okularplugin_SRCS} ${okularplugin_UI_HDRS})
430e3d2 @jeremysanders first commit
authored
41
3a37cea @afrimberger Some minor improvements
afrimberger authored
42 target_link_libraries(okularplugin ${QT_QTGUI_LIBRARY} ${KDE4_KDEUI_LIBS} ${KDE4_KPARTS_LIBS})
430e3d2 @jeremysanders first commit
authored
43
44 ########### install files ###############
d104d97 @afrimberger Added ebuild for gentoo.
afrimberger authored
45 install(TARGETS okularplugin DESTINATION ${KDE4_LIB_INSTALL_DIR} )
430e3d2 @jeremysanders first commit
authored
46 install( FILES okularpluginui.rc
d104d97 @afrimberger Added ebuild for gentoo.
afrimberger authored
47 DESTINATION ${DATA_INSTALL_DIR}/okularplugin )
4b6898a @afrimberger CMakeLists.txt:
afrimberger authored
48 install( FILES okularplugin_okularui.rc
d104d97 @afrimberger Added ebuild for gentoo.
afrimberger authored
49 DESTINATION ${DATA_INSTALL_DIR}/okularplugin )
Something went wrong with that request. Please try again.