okular/generators/poppler/CMakeLists.txt
Pino Toscano c8f85f0735 FindPoppler.cmake:
- fix the include path checking, now really using the cflags. tested with current HEAD (0.6), should work with 0.5.x as well
- fix the caching
CMakeLists.txt files:
- adapt to the include path fixes

svn path=/trunk/KDE/kdegraphics/cmake/modules/; revision=668612
2007-05-26 23:15:42 +00:00

34 lines
937 B
CMake

include_directories(
${POPPLER_INCLUDE_DIR}
${CMAKE_BINARY_DIR}/okular
${CMAKE_CURRENT_SOURCE_DIR}/../..
)
########### next target ###############
set(okularGenerator_poppler_PART_SRCS
generator_pdf.cpp
)
if (HAVE_POPPLER_0_6)
set(okularGenerator_poppler_PART_SRCS
${okularGenerator_poppler_PART_SRCS}
formfields.cpp
)
endif (HAVE_POPPLER_0_6)
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} )