2006-06-12 18:25:18 +00:00
|
|
|
project(okular)
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2006-06-03 09:22:26 +00:00
|
|
|
option(
|
2006-05-20 12:35:11 +00:00
|
|
|
OKULAR_FORCE_DRM
|
2006-06-12 18:25:18 +00:00
|
|
|
"Forces okular to check for DRM to decide if you can copy/print protected pdf. (default=no)"
|
2006-05-20 12:35:11 +00:00
|
|
|
OFF
|
|
|
|
)
|
|
|
|
if(OKULAR_FORCE_DRM STREQUAL "ON")
|
|
|
|
set(_OKULAR_FORCE_DRM 1)
|
|
|
|
else(OKULAR_FORCE_DRM STREQUAL "ON")
|
|
|
|
set(_OKULAR_FORCE_DRM 0)
|
|
|
|
endif(OKULAR_FORCE_DRM STREQUAL "ON")
|
|
|
|
|
|
|
|
configure_file(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/config-okular.h.cmake
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/config-okular.h
|
|
|
|
)
|
|
|
|
|
2006-04-07 16:52:30 +00:00
|
|
|
add_subdirectory( conf )
|
|
|
|
add_subdirectory( core )
|
|
|
|
add_subdirectory( ui )
|
|
|
|
add_subdirectory( shell )
|
|
|
|
add_subdirectory( generators )
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2006-05-13 09:10:26 +00:00
|
|
|
include_directories(
|
|
|
|
${CMAKE_SOURCE_DIR}/okular/ui/painter_agg2/
|
|
|
|
)
|
2006-03-26 12:19:40 +00:00
|
|
|
|
|
|
|
|
2006-06-12 21:58:24 +00:00
|
|
|
# okularcore
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2006-06-12 21:58:24 +00:00
|
|
|
set(okularcore_SRCS
|
2006-06-03 09:22:26 +00:00
|
|
|
conf/preferencesdialog.cpp
|
|
|
|
conf/dlgaccessibility.cpp
|
|
|
|
conf/dlggeneral.cpp
|
|
|
|
conf/dlgperformance.cpp
|
|
|
|
conf/dlgpresentation.cpp
|
|
|
|
core/annotations.cpp
|
|
|
|
core/area.cpp
|
|
|
|
core/chooseenginedialog.cpp
|
|
|
|
core/document.cpp
|
|
|
|
core/generator.cpp
|
|
|
|
core/link.cpp
|
|
|
|
core/page.cpp
|
|
|
|
core/pagetransition.cpp
|
2006-10-09 18:02:59 +00:00
|
|
|
core/sound.cpp
|
2006-06-03 09:22:26 +00:00
|
|
|
core/textpage.cpp
|
2006-06-30 21:42:41 +00:00
|
|
|
core/utils.cpp
|
2006-03-26 15:22:05 +00:00
|
|
|
)
|
|
|
|
|
2006-06-12 18:25:18 +00:00
|
|
|
kde4_add_ui_files(okularcore_SRCS
|
2006-06-12 21:58:24 +00:00
|
|
|
conf/dlgaccessibilitybase.ui
|
|
|
|
conf/dlggeneralbase.ui
|
|
|
|
conf/dlgperformancebase.ui
|
|
|
|
conf/dlgpresentationbase.ui
|
2006-06-03 09:22:26 +00:00
|
|
|
core/chooseenginewidget.ui
|
2006-03-26 15:22:05 +00:00
|
|
|
)
|
|
|
|
|
2006-10-13 13:55:33 +00:00
|
|
|
kde4_add_kcfg_files(okularcore okularcore_SRCS conf/settings.kcfgc )
|
2006-06-12 21:58:24 +00:00
|
|
|
|
2006-10-13 08:13:52 +00:00
|
|
|
kde4_automoc(okularcore ${okularcore_SRCS})
|
2006-06-12 21:58:24 +00:00
|
|
|
|
|
|
|
kde4_add_library(okularcore SHARED ${okularcore_SRCS})
|
|
|
|
|
2006-08-29 21:04:16 +00:00
|
|
|
target_link_libraries(okularcore ${KDE4_KPARTS_LIBS} ${QT_QTCORE_LIBRARY} ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} m )
|
2006-06-12 21:58:24 +00:00
|
|
|
|
2006-07-04 15:24:52 +00:00
|
|
|
install(TARGETS okularcore DESTINATION ${LIB_INSTALL_DIR} )
|
2006-06-12 21:58:24 +00:00
|
|
|
|
|
|
|
# okularpart
|
|
|
|
|
|
|
|
set(okularpart_SRCS
|
|
|
|
part.cpp
|
2006-06-03 09:22:26 +00:00
|
|
|
ui/embeddedfilesdialog.cpp
|
2006-08-11 23:53:48 +00:00
|
|
|
ui/annotwindow.cpp
|
2006-08-08 15:31:13 +00:00
|
|
|
ui/annotationpropertiesdialog.cpp
|
2006-09-12 20:21:34 +00:00
|
|
|
ui/annotationwidgets.cpp
|
2006-06-03 09:22:26 +00:00
|
|
|
ui/minibar.cpp
|
|
|
|
ui/newstuff.cpp
|
|
|
|
ui/pagepainter.cpp
|
2006-10-15 19:37:14 +00:00
|
|
|
ui/pagesizelabel.cpp
|
2006-06-03 09:22:26 +00:00
|
|
|
ui/pageviewannotator.cpp
|
|
|
|
ui/pageview.cpp
|
|
|
|
ui/pageviewutils.cpp
|
|
|
|
ui/presentationwidget.cpp
|
|
|
|
ui/propertiesdialog.cpp
|
|
|
|
ui/searchwidget.cpp
|
|
|
|
ui/side_reviews.cpp
|
|
|
|
ui/thumbnaillist.cpp
|
|
|
|
ui/toc.cpp
|
|
|
|
ui/painter_agg2/agg_bezier_arc.cpp
|
|
|
|
ui/painter_agg2/agg_path_storage.cpp
|
|
|
|
ui/painter_agg2/agg_rasterizer_scanline_aa.cpp
|
|
|
|
ui/painter_agg2/agg_trans_affine.cpp
|
|
|
|
ui/painter_agg2/agg_vcgen_stroke.cpp
|
2006-03-26 15:52:06 +00:00
|
|
|
)
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2006-10-13 08:13:52 +00:00
|
|
|
kde4_automoc(okularpart ${okularpart_SRCS})
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2006-06-12 21:58:24 +00:00
|
|
|
kde4_add_plugin(okularpart WITH_PREFIX ${okularpart_SRCS})
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2006-06-12 18:25:18 +00:00
|
|
|
kde4_install_libtool_file( ${PLUGIN_INSTALL_DIR} okularpart )
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2006-10-17 21:26:43 +00:00
|
|
|
target_link_libraries(okularpart okularcore ${KDE4_KPARTS_LIBS} ${KDE4_KDEPRINT_LIBS} ${KDE4_KNEWSTUFF_LIBS} ${KDE4_KHTML_LIBS} m )
|
|
|
|
if ( X11_Xrender_FOUND )
|
|
|
|
target_link_libraries( okularpart ${X11_Xrender_LIB} )
|
|
|
|
endif ( X11_Xrender_FOUND )
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2006-07-04 15:24:52 +00:00
|
|
|
install(TARGETS okularpart DESTINATION ${PLUGIN_INSTALL_DIR})
|
2006-03-26 12:19:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
2006-07-04 15:24:52 +00:00
|
|
|
install( FILES okular_part.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
|
|
install( FILES part.rc DESTINATION ${DATA_INSTALL_DIR}/okularpart )
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2006-08-15 08:20:53 +00:00
|
|
|
kde4_install_icons( ${ICON_INSTALL_DIR} )
|
2006-03-26 12:19:40 +00:00
|
|
|
|