CMakeLists.txt 1.06 KB
Newer Older
1
include_directories(
2
   ${CMAKE_CURRENT_SOURCE_DIR}/../..
3
   ${CMAKE_BINARY_DIR}
4
)
5 6 7 8


########### next target ###############

9
okular_add_generator(okularGenerator_kimgio generator_kimgio.cpp)
10
target_link_libraries(okularGenerator_kimgio okularcore KF5::KExiv2 KF5::I18n)
11

12 13 14 15 16 17
if(BUILD_TESTING)
    add_definitions( -DKDESRCDIR="${CMAKE_CURRENT_SOURCE_DIR}/" )
    set( kimgiotest_SRCS tests/kimgiotest.cpp ${CMAKE_SOURCE_DIR}/ui/pagepainter.cpp ${CMAKE_SOURCE_DIR}/ui/guiutils.cpp ${CMAKE_SOURCE_DIR}/ui/debug_ui.cpp )
    ecm_add_test(${kimgiotest_SRCS} TEST_NAME "kimgiotest" LINK_LIBRARIES okularcore okularpart Qt5::Svg Qt5::Test)
    target_compile_definitions(kimgiotest PRIVATE -DGENERATOR_PATH="$<TARGET_FILE:okularGenerator_kimgio>")
endif()
18

19 20

########### install files ###############
Olivier Churlaud's avatar
Olivier Churlaud committed
21
install( FILES okularKimgio.desktop  DESTINATION  ${KDE_INSTALL_KSERVICES5DIR} )
22
install( PROGRAMS okularApplication_kimgio.desktop org.kde.mobile.okular_kimgio.desktop  DESTINATION  ${KDE_INSTALL_APPDIR} )
23
install( FILES org.kde.okular-kimgio.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR} )