okular/generators/poppler/CMakeLists.txt
2007-04-06 21:47:06 +00:00

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} )