2006-06-12 18:25:18 +00:00
|
|
|
project(okular)
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2006-04-07 16:52:30 +00:00
|
|
|
add_subdirectory( ui )
|
|
|
|
add_subdirectory( shell )
|
|
|
|
add_subdirectory( generators )
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2007-03-10 13:15:49 +00:00
|
|
|
include(OkularConfigureChecks.cmake)
|
|
|
|
|
2007-03-18 17:14:36 +00:00
|
|
|
if(NOT WIN32)
|
|
|
|
set(MATH_LIB m)
|
|
|
|
else(NOT WIN32)
|
|
|
|
set(MATH_LIB)
|
|
|
|
endif(NOT WIN32)
|
2006-05-13 09:10:26 +00:00
|
|
|
include_directories(
|
2007-03-28 00:22:51 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
2007-09-07 22:57:17 +00:00
|
|
|
${BLITZ_INCLUDES}
|
2006-05-13 09:10:26 +00:00
|
|
|
)
|
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
|
2007-04-20 11:26:05 +00:00
|
|
|
core/action.cpp
|
2006-06-03 09:22:26 +00:00
|
|
|
core/annotations.cpp
|
|
|
|
core/area.cpp
|
2007-02-05 00:49:40 +00:00
|
|
|
core/audioplayer.cpp
|
2006-12-27 16:04:49 +00:00
|
|
|
core/bookmarkmanager.cpp
|
2006-06-03 09:22:26 +00:00
|
|
|
core/chooseenginedialog.cpp
|
|
|
|
core/document.cpp
|
2007-07-07 20:35:01 +00:00
|
|
|
core/fontinfo.cpp
|
2007-02-25 00:07:59 +00:00
|
|
|
core/form.cpp
|
2006-06-03 09:22:26 +00:00
|
|
|
core/generator.cpp
|
2007-04-20 17:17:44 +00:00
|
|
|
core/generator_p.cpp
|
2007-01-03 14:30:48 +00:00
|
|
|
core/misc.cpp
|
2006-12-05 08:53:26 +00:00
|
|
|
core/observer.cpp
|
2006-06-03 09:22:26 +00:00
|
|
|
core/page.cpp
|
2007-03-24 10:47:22 +00:00
|
|
|
core/pagecontroller.cpp
|
2007-01-05 23:12:06 +00:00
|
|
|
core/pagesize.cpp
|
2006-06-03 09:22:26 +00:00
|
|
|
core/pagetransition.cpp
|
2006-11-03 17:57:32 +00:00
|
|
|
core/rotationjob.cpp
|
2006-10-09 18:02:59 +00:00
|
|
|
core/sound.cpp
|
2007-01-02 17:45:32 +00:00
|
|
|
core/sourcereference.cpp
|
2007-01-13 23:15:28 +00:00
|
|
|
core/textdocumentgenerator.cpp
|
2006-06-03 09:22:26 +00:00
|
|
|
core/textpage.cpp
|
2006-06-30 21:42:41 +00:00
|
|
|
core/utils.cpp
|
2007-11-26 21:43:54 +00:00
|
|
|
core/fileprinter.cpp
|
2006-03-26 15:22:05 +00:00
|
|
|
)
|
|
|
|
|
2007-01-03 14:30:48 +00:00
|
|
|
install( FILES
|
2007-04-20 11:26:05 +00:00
|
|
|
core/action.h
|
2007-01-03 14:30:48 +00:00
|
|
|
core/annotations.h
|
|
|
|
core/area.h
|
|
|
|
core/document.h
|
2007-07-08 16:21:53 +00:00
|
|
|
core/fontinfo.h
|
2007-03-18 19:25:04 +00:00
|
|
|
core/form.h
|
2007-01-03 14:30:48 +00:00
|
|
|
core/generator.h
|
2007-04-22 10:23:59 +00:00
|
|
|
core/global.h
|
2007-03-18 19:25:04 +00:00
|
|
|
core/okular_export.h
|
2007-01-03 14:30:48 +00:00
|
|
|
core/page.h
|
2007-01-05 23:12:06 +00:00
|
|
|
core/pagesize.h
|
2007-01-03 14:30:48 +00:00
|
|
|
core/pagetransition.h
|
|
|
|
core/sound.h
|
|
|
|
core/sourcereference.h
|
2007-01-13 23:15:28 +00:00
|
|
|
core/textdocumentgenerator.h
|
2007-01-03 14:30:48 +00:00
|
|
|
core/textpage.h
|
|
|
|
core/utils.h
|
2007-11-26 21:43:54 +00:00
|
|
|
core/fileprinter.h
|
2007-01-03 14:30:48 +00:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/okular/core )
|
|
|
|
|
|
|
|
install( FILES
|
|
|
|
interfaces/configinterface.h
|
|
|
|
interfaces/guiinterface.h
|
|
|
|
interfaces/printinterface.h
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/okular/interfaces )
|
|
|
|
|
2006-06-12 18:25:18 +00:00
|
|
|
kde4_add_ui_files(okularcore_SRCS
|
2006-06-03 09:22:26 +00:00
|
|
|
core/chooseenginewidget.ui
|
2006-03-26 15:22:05 +00:00
|
|
|
)
|
|
|
|
|
2006-10-23 09:29:10 +00:00
|
|
|
kde4_add_kcfg_files(okularcore_SRCS conf/settings.kcfgc )
|
2006-06-12 21:58:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
kde4_add_library(okularcore SHARED ${okularcore_SRCS})
|
|
|
|
|
2006-10-29 15:08:18 +00:00
|
|
|
# Special handling for linking okularcore on OSX/Apple
|
|
|
|
IF(APPLE)
|
|
|
|
SET(OKULAR_IOKIT "-framework IOKit" CACHE STRING "Apple IOKit framework")
|
|
|
|
ENDIF(APPLE)
|
|
|
|
|
2007-12-03 00:17:12 +00:00
|
|
|
target_link_libraries(okularcore ${OKULAR_IOKIT} ${KDE4_KIO_LIBS} ${KDE4_PHONON_LIBRARY} ${MATH_LIB} ${KDE4_THREADWEAVER_LIBRARY} )
|
2006-06-12 21:58:24 +00:00
|
|
|
|
2007-04-20 16:12:05 +00:00
|
|
|
set_target_properties(okularcore PROPERTIES VERSION 1.0.0 SOVERSION 1 )
|
|
|
|
|
2006-07-04 15:24:52 +00:00
|
|
|
install(TARGETS okularcore DESTINATION ${LIB_INSTALL_DIR} )
|
2006-06-12 21:58:24 +00:00
|
|
|
|
2007-01-25 18:06:53 +00:00
|
|
|
install(FILES conf/okular.kcfg DESTINATION ${KCFG_INSTALL_DIR})
|
|
|
|
install(FILES core/okularGenerator.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})
|
|
|
|
|
2006-06-12 21:58:24 +00:00
|
|
|
# okularpart
|
|
|
|
|
|
|
|
set(okularpart_SRCS
|
|
|
|
part.cpp
|
2006-11-10 20:29:12 +00:00
|
|
|
conf/preferencesdialog.cpp
|
|
|
|
conf/dlgaccessibility.cpp
|
2006-12-22 15:04:01 +00:00
|
|
|
conf/dlgdebug.cpp
|
2006-11-10 20:29:12 +00:00
|
|
|
conf/dlggeneral.cpp
|
|
|
|
conf/dlgidentity.cpp
|
|
|
|
conf/dlgperformance.cpp
|
|
|
|
conf/dlgpresentation.cpp
|
2006-06-03 09:22:26 +00:00
|
|
|
ui/embeddedfilesdialog.cpp
|
2006-08-11 23:53:48 +00:00
|
|
|
ui/annotwindow.cpp
|
2007-09-08 17:10:35 +00:00
|
|
|
ui/annotationmodel.cpp
|
2006-12-30 12:40:54 +00:00
|
|
|
ui/annotationpopup.cpp
|
2006-08-08 15:31:13 +00:00
|
|
|
ui/annotationpropertiesdialog.cpp
|
2007-09-09 16:51:55 +00:00
|
|
|
ui/annotationproxymodels.cpp
|
2006-11-01 15:23:11 +00:00
|
|
|
ui/annotationtools.cpp
|
2006-09-12 20:21:34 +00:00
|
|
|
ui/annotationwidgets.cpp
|
2006-12-27 16:04:49 +00:00
|
|
|
ui/bookmarklist.cpp
|
2007-12-03 00:17:12 +00:00
|
|
|
ui/fileprinterpreview.cpp
|
2007-03-17 22:58:41 +00:00
|
|
|
ui/findbar.cpp
|
2007-02-25 00:07:59 +00:00
|
|
|
ui/formwidgets.cpp
|
2007-12-24 00:54:21 +00:00
|
|
|
ui/guiutils.cpp
|
2007-09-09 15:50:00 +00:00
|
|
|
ui/ktreeviewsearchline.cpp
|
2006-06-03 09:22:26 +00:00
|
|
|
ui/minibar.cpp
|
2006-12-26 12:01:30 +00:00
|
|
|
ui/pageitemdelegate.cpp
|
2006-06-03 09:22:26 +00:00
|
|
|
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
|
2007-03-17 22:58:41 +00:00
|
|
|
ui/presentationsearchbar.cpp
|
2006-06-03 09:22:26 +00:00
|
|
|
ui/presentationwidget.cpp
|
|
|
|
ui/propertiesdialog.cpp
|
2007-03-17 16:58:01 +00:00
|
|
|
ui/searchlineedit.cpp
|
2006-06-03 09:22:26 +00:00
|
|
|
ui/searchwidget.cpp
|
2007-08-06 17:24:10 +00:00
|
|
|
ui/sidebar.cpp
|
2006-06-03 09:22:26 +00:00
|
|
|
ui/side_reviews.cpp
|
|
|
|
ui/thumbnaillist.cpp
|
|
|
|
ui/toc.cpp
|
2007-09-09 16:15:33 +00:00
|
|
|
ui/tocmodel.cpp
|
2007-09-14 10:02:33 +00:00
|
|
|
ui/toolaction.cpp
|
2006-03-26 15:52:06 +00:00
|
|
|
)
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2006-11-10 20:29:12 +00:00
|
|
|
kde4_add_ui_files(okularpart_SRCS
|
|
|
|
conf/dlgaccessibilitybase.ui
|
|
|
|
conf/dlggeneralbase.ui
|
|
|
|
conf/dlgidentitybase.ui
|
|
|
|
conf/dlgperformancebase.ui
|
|
|
|
conf/dlgpresentationbase.ui
|
|
|
|
)
|
|
|
|
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2007-12-02 21:02:57 +00:00
|
|
|
kde4_add_plugin(okularpart ${okularpart_SRCS})
|
2006-03-26 12:19:40 +00:00
|
|
|
|
2007-12-03 00:17:12 +00:00
|
|
|
target_link_libraries(okularpart okularcore ${KDE4_KPARTS_LIBS} ${KDE4_KUTILS_LIBS} ${KDE4_KNEWSTUFF2_LIBS} ${MATH_LIB} ${BLITZ_LIBRARIES})
|
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} )
|
2007-10-02 22:42:59 +00:00
|
|
|
install( FILES part.rc DESTINATION ${DATA_INSTALL_DIR}/okular )
|
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
|
|
|
|