mirror of
https://invent.kde.org/graphics/okular
synced 2024-07-16 10:17:04 +00:00
f55c401b20
Merge the search in normal mode and the type-ahead in a search bar that appears on the bottom of the page view. This should work nicely. In presentation mode, add a small floating search toolbar that takes care of searching during the presentation mode, on document request. This is not working yet, but basically most of the work is done. Please test and report any problems you find. CCMAIL: okular-devel@kde.org svn path=/trunk/playground/graphics/okular/; revision=643607
156 lines
3.9 KiB
CMake
156 lines
3.9 KiB
CMake
project(okular)
|
|
|
|
add_subdirectory( ui )
|
|
add_subdirectory( shell )
|
|
add_subdirectory( generators )
|
|
|
|
include(OkularConfigureChecks.cmake)
|
|
|
|
include_directories(
|
|
${CMAKE_SOURCE_DIR}
|
|
${CMAKE_SOURCE_DIR}/okular/ui/painter_agg2/
|
|
)
|
|
|
|
|
|
# okularcore
|
|
|
|
set(okularcore_SRCS
|
|
core/annotations.cpp
|
|
core/area.cpp
|
|
core/audioplayer.cpp
|
|
core/bookmarkmanager.cpp
|
|
core/chooseenginedialog.cpp
|
|
core/document.cpp
|
|
core/form.cpp
|
|
core/generator.cpp
|
|
core/link.cpp
|
|
core/misc.cpp
|
|
core/observer.cpp
|
|
core/page.cpp
|
|
core/pagesize.cpp
|
|
core/pagetransition.cpp
|
|
core/rotationjob.cpp
|
|
core/sound.cpp
|
|
core/sourcereference.cpp
|
|
core/textdocumentgenerator.cpp
|
|
core/textpage.cpp
|
|
core/utils.cpp
|
|
)
|
|
|
|
install( FILES
|
|
core/annotations.h
|
|
core/area.h
|
|
core/document.h
|
|
core/generator.h
|
|
core/link.h
|
|
core/observer.h
|
|
core/page.h
|
|
core/pagesize.h
|
|
core/pagetransition.h
|
|
core/sound.h
|
|
core/sourcereference.h
|
|
core/textdocumentgenerator.h
|
|
core/textpage.h
|
|
core/utils.h
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/okular/core )
|
|
|
|
install( FILES
|
|
interfaces/configinterface.h
|
|
interfaces/guiinterface.h
|
|
interfaces/printinterface.h
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/okular/interfaces )
|
|
|
|
kde4_add_ui_files(okularcore_SRCS
|
|
core/chooseenginewidget.ui
|
|
)
|
|
|
|
kde4_add_kcfg_files(okularcore_SRCS conf/settings.kcfgc )
|
|
|
|
kde4_automoc(${okularcore_SRCS})
|
|
|
|
kde4_add_library(okularcore SHARED ${okularcore_SRCS})
|
|
|
|
# Special handling for linking okularcore on OSX/Apple
|
|
IF(APPLE)
|
|
SET(OKULAR_IOKIT "-framework IOKit" CACHE STRING "Apple IOKit framework")
|
|
ENDIF(APPLE)
|
|
|
|
target_link_libraries(okularcore ${OKULAR_IOKIT} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBRARY} ${KDE4_KDEPRINT_LIBS} ${KDE4_PHONONCORE_LIBRARY} m )
|
|
|
|
install(TARGETS okularcore DESTINATION ${LIB_INSTALL_DIR} )
|
|
|
|
install(FILES conf/okular.kcfg DESTINATION ${KCFG_INSTALL_DIR})
|
|
install(FILES core/okularGenerator.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})
|
|
|
|
# okularpart
|
|
|
|
set(okularpart_SRCS
|
|
part.cpp
|
|
conf/preferencesdialog.cpp
|
|
conf/dlgaccessibility.cpp
|
|
conf/dlgdebug.cpp
|
|
conf/dlggeneral.cpp
|
|
conf/dlgidentity.cpp
|
|
conf/dlgperformance.cpp
|
|
conf/dlgpresentation.cpp
|
|
ui/embeddedfilesdialog.cpp
|
|
ui/annotwindow.cpp
|
|
ui/annotationguiutils.cpp
|
|
ui/annotationpopup.cpp
|
|
ui/annotationpropertiesdialog.cpp
|
|
ui/annotationtools.cpp
|
|
ui/annotationwidgets.cpp
|
|
ui/bookmarklist.cpp
|
|
ui/findbar.cpp
|
|
ui/formwidgets.cpp
|
|
ui/minibar.cpp
|
|
ui/newstuff.cpp
|
|
ui/pageitemdelegate.cpp
|
|
ui/pagepainter.cpp
|
|
ui/pagesizelabel.cpp
|
|
ui/pageviewannotator.cpp
|
|
ui/pageview.cpp
|
|
ui/pageviewutils.cpp
|
|
ui/presentationsearchbar.cpp
|
|
ui/presentationwidget.cpp
|
|
ui/propertiesdialog.cpp
|
|
ui/searchlineedit.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
|
|
)
|
|
|
|
kde4_add_ui_files(okularpart_SRCS
|
|
conf/dlgaccessibilitybase.ui
|
|
conf/dlggeneralbase.ui
|
|
conf/dlgidentitybase.ui
|
|
conf/dlgperformancebase.ui
|
|
conf/dlgpresentationbase.ui
|
|
)
|
|
|
|
kde4_automoc(${okularpart_SRCS})
|
|
|
|
kde4_add_plugin(okularpart WITH_PREFIX ${okularpart_SRCS})
|
|
|
|
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 )
|
|
|
|
install(TARGETS okularpart DESTINATION ${PLUGIN_INSTALL_DIR})
|
|
|
|
|
|
########### install files ###############
|
|
|
|
install( FILES okular_part.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
install( FILES part.rc DESTINATION ${DATA_INSTALL_DIR}/okularpart )
|
|
|
|
kde4_install_icons( ${ICON_INSTALL_DIR} )
|
|
|