mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
55a67a082e
svn path=/trunk/KDE/kdegraphics/okular/; revision=651194
34 lines
947 B
CMake
34 lines
947 B
CMake
include_directories(
|
|
${POPPLER_INCLUDE_DIR}/poppler
|
|
${CMAKE_BINARY_DIR}/okular
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../..
|
|
)
|
|
|
|
|
|
########### next target ###############
|
|
|
|
set(okularGenerator_poppler_PART_SRCS
|
|
generator_pdf.cpp
|
|
)
|
|
|
|
if (HAVE_POPPLER_HEAD)
|
|
set(okularGenerator_poppler_PART_SRCS
|
|
${okularGenerator_poppler_PART_SRCS}
|
|
formfields.cpp
|
|
)
|
|
endif (HAVE_POPPLER_HEAD)
|
|
|
|
kde4_automoc(${okularGenerator_poppler_PART_SRCS})
|
|
|
|
kde4_add_plugin(okularGenerator_poppler WITH_PREFIX ${okularGenerator_poppler_PART_SRCS})
|
|
|
|
target_link_libraries(okularGenerator_poppler ${POPPLER_LIBRARY} okularcore ${KDE4_KDEPRINT_LIBS} m )
|
|
|
|
install(TARGETS okularGenerator_poppler DESTINATION ${PLUGIN_INSTALL_DIR})
|
|
|
|
|
|
########### install files ###############
|
|
|
|
install( FILES libokularGenerator_poppler.desktop okularPoppler.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
install( FILES okularApplication_pdf.desktop DESTINATION ${XDG_APPS_DIR} )
|
|
|