Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 719666
Collapse All | Expand All

(-)a/generators/chm/CMakeLists.txt (-5 / +3 lines)
Lines 32-42 Link Here
32
32
33
########### autotests ###############
33
########### autotests ###############
34
34
35
add_definitions( -DKDESRCDIR="${CMAKE_CURRENT_SOURCE_DIR}/" )
35
if(BUILD_TESTING)
36
ecm_add_test(autotests/chmgeneratortest.cpp
36
   add_subdirectory(autotests)
37
    TEST_NAME "chmgeneratortest"
37
endif()
38
    LINK_LIBRARIES Qt5::Test KF5::CoreAddons okularcore
39
)
40
38
41
target_compile_definitions(chmgeneratortest PRIVATE -DGENERATOR_PATH="$<TARGET_FILE:okularGenerator_chmlib>")
39
target_compile_definitions(chmgeneratortest PRIVATE -DGENERATOR_PATH="$<TARGET_FILE:okularGenerator_chmlib>")
42
40
(-)a/generators/kimgio/CMakeLists.txt (-4 / +1 lines)
Lines 13-22 Link Here
13
target_link_libraries(okularGenerator_kimgio okularcore KF5::KExiv2 KF5::I18n)
13
target_link_libraries(okularGenerator_kimgio okularcore KF5::KExiv2 KF5::I18n)
14
14
15
if(BUILD_TESTING)
15
if(BUILD_TESTING)
16
    add_definitions( -DKDESRCDIR="${CMAKE_CURRENT_SOURCE_DIR}/" )
16
    add_subdirectory(tests)
17
    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 )
18
    ecm_add_test(${kimgiotest_SRCS} TEST_NAME "kimgiotest" LINK_LIBRARIES okularcore okularpart Qt5::Svg Qt5::Test)
19
    target_compile_definitions(kimgiotest PRIVATE -DGENERATOR_PATH="$<TARGET_FILE:okularGenerator_kimgio>")
20
endif()
17
endif()
21
18
22
19
(-)a/generators/comicbook/CMakeLists.txt (-5 / +3 lines)
Lines 31-41 Link Here
31
31
32
########### autotests ###############
32
########### autotests ###############
33
33
34
add_definitions( -DKDESRCDIR="${CMAKE_CURRENT_SOURCE_DIR}/" )
34
if(BUILD_TESTING)
35
ecm_add_test(autotests/comicbooktest.cpp
35
   add_subdirectory(autotests)
36
    TEST_NAME "comicbooktest"
36
endif()
37
    LINK_LIBRARIES Qt5::Test KF5::CoreAddons okularcore okular_comicbook
38
)
39
37
40
########### install files ###############
38
########### install files ###############
41
install( FILES okularComicbook.desktop  DESTINATION  ${KDE_INSTALL_KSERVICES5DIR} )
39
install( FILES okularComicbook.desktop  DESTINATION  ${KDE_INSTALL_KSERVICES5DIR} )

Return to bug 719666