Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (34 sloc) 1.02 KB
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 )