okular/generators/epub/CMakeLists.txt
Nicolas Fella 7d15dc1ae6 Clean up include_directories calls
Remove unnecessary calls

Convert necessary calls to target_include_directories
2021-07-04 00:51:15 +02:00

33 lines
1.1 KiB
CMake

remove_definitions(-DTRANSLATION_DOMAIN="okular")
add_definitions(-DTRANSLATION_DOMAIN="okular_epub")
add_subdirectory(data)
########### next target ###############
set(okularGenerator_epub_PART_SRCS
converter.cpp
epubdocument.cpp
generator_epub.cpp
)
okular_add_generator(okularGenerator_epub ${okularGenerator_epub_PART_SRCS})
target_include_directories(okularGenerator_epub PRIVATE ${EPUB_INCLUDE_DIR})
target_link_libraries(okularGenerator_epub okularcore ${EPUB_LIBRARIES} KF5::I18n Qt5::Widgets Qt5::Xml)
########### autotests ###############
add_definitions( -DKDESRCDIR="${CMAKE_CURRENT_SOURCE_DIR}/" )
ecm_add_test(autotests/epubgeneratortest.cpp
TEST_NAME "epubgeneratortest"
LINK_LIBRARIES Qt5::Test KF5::CoreAddons okularcore
)
########### install files ###############
install( FILES okularEPub.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
install( PROGRAMS okularApplication_epub.desktop org.kde.mobile.okular_epub.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
install( FILES org.kde.okular-epub.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR} )