Commit 147429eb authored by Boudewijn Rempt's avatar Boudewijn Rempt

Restore kde4_add_unittest lines

The automatic porting was pretty botched
parent e6463904
This diff is collapsed.
......@@ -5,86 +5,62 @@ macro_add_unittest_definitions()
########### next target ###############
set(kis_tiled_data_manager_test_SRCS kis_tiled_data_manager_test.cpp )
add_executable(KisTiledDataManagerTestNAME krita-image-KisTiledDataManagerTest ${kis_tiled_data_manager_test_SRCS})
add_test(KisTiledDataManagerTest KisTiledDataManagerTest)
ecm_mark_as_test(KisTiledDataManagerTest)
target_link_libraries(KisTiledDataManagerTest kritaimage Qt5::Test)
kde4_add_unit_test(KisTiledDataManagerTest TESTNAME krita-image-KisTiledDataManagerTest ${kis_tiled_data_manager_test_SRCS})
target_link_libraries(KisTiledDataManagerTest ${KDE4_KDEUI_LIBS} kritaimage ${QT_QTTEST_LIBRARY})
########### next target ###############
set(kis_low_memory_tests_SRCS kis_low_memory_tests.cpp )
add_executable(KisLowMemoryTestsNAME krita-image-KisLowMemoryTests ${kis_low_memory_tests_SRCS})
add_test(KisLowMemoryTests KisLowMemoryTests)
ecm_mark_as_test(KisLowMemoryTests)
target_link_libraries(KisLowMemoryTests kritaimage Qt5::Test)
kde4_add_unit_test(KisLowMemoryTests TESTNAME krita-image-KisLowMemoryTests ${kis_low_memory_tests_SRCS})
target_link_libraries(KisLowMemoryTests ${KDE4_KDEUI_LIBS} kritaimage ${QT_QTTEST_LIBRARY})
set_tests_properties(krita-image-KisLowMemoryTests PROPERTIES TIMEOUT 180)
########### next target ###############
set(kis_tile_compressors_test_SRCS kis_tile_compressors_test.cpp )
add_executable(KisTileCompressorsTestNAME krita-image-KisTileCompressorsTest ${kis_tile_compressors_test_SRCS})
add_test(KisTileCompressorsTest KisTileCompressorsTest)
ecm_mark_as_test(KisTileCompressorsTest)
target_link_libraries(KisTileCompressorsTest koodf kritaimage Qt5::Test)
kde4_add_unit_test(KisTileCompressorsTest TESTNAME krita-image-KisTileCompressorsTest ${kis_tile_compressors_test_SRCS})
target_link_libraries(KisTileCompressorsTest ${KDE4_KDEUI_LIBS} koodf kritaimage ${QT_QTTEST_LIBRARY})
########### next target ###############
set(kis_compression_tests_SRCS kis_compression_tests.cpp )
add_executable(KisCompressionTestsNAME krita-image-KisCompressionTests ${kis_compression_tests_SRCS})
add_test(KisCompressionTests KisCompressionTests)
ecm_mark_as_test(KisCompressionTests)
target_link_libraries(KisCompressionTests kritaimage Qt5::Test)
kde4_add_unit_test(KisCompressionTests TESTNAME krita-image-KisCompressionTests ${kis_compression_tests_SRCS})
target_link_libraries(KisCompressionTests ${KDE4_KDEUI_LIBS} kritaimage ${QT_QTTEST_LIBRARY})
########### next target ###############
set(kis_lockless_stack_test_SRCS kis_lockless_stack_test.cpp )
add_executable(KisLocklessStackTestNAME krita-image-KisLocklessStackTest ${kis_lockless_stack_test_SRCS})
add_test(KisLocklessStackTest KisLocklessStackTest)
ecm_mark_as_test(KisLocklessStackTest)
target_link_libraries(KisLocklessStackTest kritaimage Qt5::Test)
kde4_add_unit_test(KisLocklessStackTest TESTNAME krita-image-KisLocklessStackTest ${kis_lockless_stack_test_SRCS})
target_link_libraries(KisLocklessStackTest ${KDE4_KDEUI_LIBS} kritaimage ${QT_QTTEST_LIBRARY})
########### next target ###############
set(kis_memory_pool_test_SRCS kis_memory_pool_test.cpp )
add_executable(KisMemoryPoolTestNAME krita-image-KisMemoryPoolTest ${kis_memory_pool_test_SRCS})
add_test(KisMemoryPoolTest KisMemoryPoolTest)
ecm_mark_as_test(KisMemoryPoolTest)
target_link_libraries(KisMemoryPoolTest Qt5::Test)
kde4_add_unit_test(KisMemoryPoolTest TESTNAME krita-image-KisMemoryPoolTest ${kis_memory_pool_test_SRCS})
target_link_libraries(KisMemoryPoolTest ${KDE4_KDEUI_LIBS} ${QT_QTTEST_LIBRARY})
########### next target ###############
set(kis_chunk_allocator_test_SRCS kis_chunk_allocator_test.cpp ../swap/kis_chunk_allocator.cpp)
add_executable(KisChunkAllocatorTestNAME krita-image-KisChunkAllocatorTest ${kis_chunk_allocator_test_SRCS})
add_test(KisChunkAllocatorTest KisChunkAllocatorTest)
ecm_mark_as_test(KisChunkAllocatorTest)
target_link_libraries(KisChunkAllocatorTest Qt5::Test)
kde4_add_unit_test(KisChunkAllocatorTest TESTNAME krita-image-KisChunkAllocatorTest ${kis_chunk_allocator_test_SRCS})
target_link_libraries(KisChunkAllocatorTest ${KDE4_KDEUI_LIBS} ${QT_QTTEST_LIBRARY})
########### next target ###############
set(kis_memory_window_test_SRCS kis_memory_window_test.cpp ../swap/kis_memory_window.cpp)
add_executable(KisMemoryWindowTestNAME krita-image-KisMemoryWindowTest ${kis_memory_window_test_SRCS})
add_test(KisMemoryWindowTest KisMemoryWindowTest)
ecm_mark_as_test(KisMemoryWindowTest)
target_link_libraries(KisMemoryWindowTest Qt5::Test)
kde4_add_unit_test(KisMemoryWindowTest TESTNAME krita-image-KisMemoryWindowTest ${kis_memory_window_test_SRCS})
target_link_libraries(KisMemoryWindowTest ${KDE4_KDEUI_LIBS} ${QT_QTTEST_LIBRARY})
########### next target ###############
set(kis_swapped_data_store_test_SRCS kis_swapped_data_store_test.cpp ../kis_tile_data.cc)
add_executable(KisSwappedDataStoreTestNAME krita-image-KisSwappedDataStoreTest ${kis_swapped_data_store_test_SRCS})
add_test(KisSwappedDataStoreTest KisSwappedDataStoreTest)
ecm_mark_as_test(KisSwappedDataStoreTest)
target_link_libraries(KisSwappedDataStoreTest kritaimage Qt5::Test ${Boost_SYSTEM_LIBRARY})
kde4_add_unit_test(KisSwappedDataStoreTest TESTNAME krita-image-KisSwappedDataStoreTest ${kis_swapped_data_store_test_SRCS})
target_link_libraries(KisSwappedDataStoreTest ${KDE4_KDEUI_LIBS} kritaimage ${QT_QTTEST_LIBRARY} ${Boost_SYSTEM_LIBRARY})
########### next target ###############
set(kis_tile_data_store_test_SRCS kis_tile_data_store_test.cpp ../kis_tile_data.cc)
add_executable(KisTileDataStoreTestNAME krita-image-KisTileDataStoreTest ${kis_tile_data_store_test_SRCS})
add_test(KisTileDataStoreTest KisTileDataStoreTest)
ecm_mark_as_test(KisTileDataStoreTest)
target_link_libraries(KisTileDataStoreTest kritaimage Qt5::Test ${Boost_SYSTEM_LIBRARY})
kde4_add_unit_test(KisTileDataStoreTest TESTNAME krita-image-KisTileDataStoreTest ${kis_tile_data_store_test_SRCS})
target_link_libraries(KisTileDataStoreTest ${KDE4_KDEUI_LIBS} kritaimage ${QT_QTTEST_LIBRARY} ${Boost_SYSTEM_LIBRARY})
########### next target ###############
set(kis_store_limits_test_SRCS kis_store_limits_test.cpp ../kis_tile_data.cc )
add_executable(KisStoreLimitsTestNAME krita-image-KisStoreLimitsTest ${kis_store_limits_test_SRCS})
add_test(KisStoreLimitsTest KisStoreLimitsTest)
ecm_mark_as_test(KisStoreLimitsTest)
target_link_libraries(KisStoreLimitsTest kritaimage Qt5::Test ${Boost_SYSTEM_LIBRARY})
kde4_add_unit_test(KisStoreLimitsTest TESTNAME krita-image-KisStoreLimitsTest ${kis_store_limits_test_SRCS})
target_link_libraries(KisStoreLimitsTest ${KDE4_KDEUI_LIBS} kritaimage ${QT_QTTEST_LIBRARY} ${Boost_SYSTEM_LIBRARY})
########### next target ###############
set(kis_tile_data_pooler_test_SRCS kis_tile_data_pooler_test.cpp ../kis_tile_data.cc ../kis_tile_data_pooler.cc )
add_executable(KisTileDataPoolerTestNAME krita-image-KisTileDataPoolerTest ${kis_tile_data_pooler_test_SRCS})
add_test(KisTileDataPoolerTest KisTileDataPoolerTest)
ecm_mark_as_test(KisTileDataPoolerTest)
target_link_libraries(KisTileDataPoolerTest kritaimage Qt5::Test ${Boost_SYSTEM_LIBRARY})
kde4_add_unit_test(KisTileDataPoolerTest TESTNAME krita-image-KisTileDataPoolerTest ${kis_tile_data_pooler_test_SRCS})
target_link_libraries(KisTileDataPoolerTest ${KDE4_KDEUI_LIBS} kritaimage ${QT_QTTEST_LIBRARY} ${Boost_SYSTEM_LIBRARY})
......@@ -8,31 +8,23 @@ macro_add_unittest_definitions()
########### next target ###############
set(kis_auto_brush_test_SRCS kis_auto_brush_test.cpp )
add_executable(KisAutobrushTestNAME krita-libbrush-KisAutobrushTest ${kis_auto_brush_test_SRCS})
add_test(KisAutobrushTest KisAutobrushTest)
ecm_mark_as_test(KisAutobrushTest)
target_link_libraries(KisAutobrushTest kritaimage kritalibbrush Qt5::Test)
kde4_add_unit_test(KisAutobrushTest TESTNAME krita-libbrush-KisAutobrushTest ${kis_auto_brush_test_SRCS})
target_link_libraries(KisAutobrushTest ${KDE4_KDEUI_LIBS} kritaimage kritalibbrush ${QT_QTTEST_LIBRARY})
########### next target ###############
set(kis_brush_test_SRCS kis_brush_test.cpp )
add_executable(KisBrushTestNAME krita-libbrush-KisBrushTest ${kis_brush_test_SRCS})
add_test(KisBrushTest KisBrushTest)
ecm_mark_as_test(KisBrushTest)
target_link_libraries(KisBrushTest kritaimage kritalibbrush Qt5::Test)
kde4_add_unit_test(KisBrushTest TESTNAME krita-libbrush-KisBrushTest ${kis_brush_test_SRCS})
target_link_libraries(KisBrushTest ${KDE4_KDEUI_LIBS} kritaimage kritalibbrush ${QT_QTTEST_LIBRARY})
########### next target ###############
set(kis_boundary_test_SRCS kis_boundary_test.cpp )
add_executable(KisBoundaryTestNAME krita-libbrush-KisBoundaryTest ${kis_boundary_test_SRCS})
add_test(KisBoundaryTest KisBoundaryTest)
ecm_mark_as_test(KisBoundaryTest)
target_link_libraries(KisBoundaryTest kritaimage kritalibbrush Qt5::Test)
kde4_add_unit_test(KisBoundaryTest TESTNAME krita-libbrush-KisBoundaryTest ${kis_boundary_test_SRCS})
target_link_libraries(KisBoundaryTest ${KDE4_KDEUI_LIBS} kritaimage kritalibbrush ${QT_QTTEST_LIBRARY})
########### next target ###############
set(kis_imagepipe_brush_test_SRCS kis_imagepipe_brush_test.cpp )
add_executable(KisImagePipeBrushTestNAME krita-libbrush-KisImagePipeBrushTest ${kis_imagepipe_brush_test_SRCS})
add_test(KisImagePipeBrushTest KisImagePipeBrushTest)
ecm_mark_as_test(KisImagePipeBrushTest)
target_link_libraries(KisImagePipeBrushTest kritaimage kritalibbrush Qt5::Test)
kde4_add_unit_test(KisImagePipeBrushTest TESTNAME krita-libbrush-KisImagePipeBrushTest ${kis_imagepipe_brush_test_SRCS})
target_link_libraries(KisImagePipeBrushTest ${KDE4_KDEUI_LIBS} kritaimage kritalibbrush ${QT_QTTEST_LIBRARY})
......@@ -3,7 +3,5 @@ macro_add_unittest_definitions()
########### next target ###############
set(kis_ocio_display_filter_test_SRCS kis_ocio_display_filter_test.cpp ../../../../../sdk/tests/stroke_testing_utils.cpp)
add_executable(KisOcioDisplayFilterTestNAME krita-ocio-KisOcioDisplayFilterTest ${kis_ocio_display_filter_test_SRCS})
add_test(KisOcioDisplayFilterTest KisOcioDisplayFilterTest)
ecm_mark_as_test(KisOcioDisplayFilterTest)
target_link_libraries(KisOcioDisplayFilterTest kritaimage kritaui kritalutdocker ${OCIO_LIBRARIES} Qt5::Test)
kde4_add_unit_test(KisOcioDisplayFilterTest TESTNAME krita-ocio-KisOcioDisplayFilterTest ${kis_ocio_display_filter_test_SRCS})
target_link_libraries(KisOcioDisplayFilterTest ${KDE4_KDEUI_LIBS} kritaimage kritaui kritalutdocker ${OCIO_LIBRARIES} ${QT_QTTEST_LIBRARY})
......@@ -24,12 +24,10 @@ set(kritagmic_parser_PART_SRCS
########### next target ###############
set(kis_gmic_tests_SRCS kis_gmic_tests.cpp ${kritagmic_parser_PART_SRCS})
add_executable(KisGmicTestsNAME krita-plugins-extensions-gmic-GmicTests ${kis_gmic_tests_SRCS})
add_test(KisGmicTests KisGmicTests)
ecm_mark_as_test(KisGmicTests)
target_link_libraries(KisGmicTests gmic kritaimage Qt5::Test Qt5::Xml)
kde4_add_unit_test(KisGmicTests TESTNAME krita-plugins-extensions-gmic-GmicTests ${kis_gmic_tests_SRCS})
target_link_libraries(KisGmicTests gmic kritaimage ${QT_QTTEST_LIBRARY} ${QT_QTXML_LIBRARY})
set(kis_gmic_benchmarks_SRCS kis_gmic_benchmarks.cpp ${kritagmic_parser_PART_SRCS})
calligra_add_benchmark(KisGmicBenchmark TESTNAME krita-plugins-extensions-gmic-GmicBenchmarks ${kis_gmic_benchmarks_SRCS})
target_link_libraries(KisGmicBenchmark gmic kritaimage Qt5::Test Qt5::Xml)
target_link_libraries(KisGmicBenchmark gmic kritaimage ${QT_QTTEST_LIBRARY} ${QT_QTXML_LIBRARY})
......@@ -11,7 +11,5 @@ include_directories(
macro_add_unittest_definitions()
set(ResourceBundleTest_SRCS ResourceBundleTest.cpp ../resourcebundle.cpp ../resourcebundle_manifest.cpp)
add_executable(ResourceBundleTestNAME krita-resourcemanager-ResourceBundleTest ${ResourceBundleTest_SRCS})
add_test(ResourceBundleTest ResourceBundleTest)
ecm_mark_as_test(ResourceBundleTest)
target_link_libraries(ResourceBundleTest kritaui kritalibbrush kritalibpaintop Qt5::Test )
kde4_add_unit_test(ResourceBundleTest TESTNAME krita-resourcemanager-ResourceBundleTest ${ResourceBundleTest_SRCS})
target_link_libraries(ResourceBundleTest kritaui kritalibbrush kritalibpaintop ${QT_QTTEST_LIBRARY} ${KDE4_KDEUI_LIBS})
......@@ -6,7 +6,5 @@ macro_add_unittest_definitions()
########### next target ###############
set(kis_unsharp_mask_test_SRCS kis_unsharp_mask_test.cpp )
add_executable(KisUnsharpMaskTestNAME krita-ui-kis_unsharp_mask_test ${kis_unsharp_mask_test_SRCS})
add_test(KisUnsharpMaskTest KisUnsharpMaskTest)
ecm_mark_as_test(KisUnsharpMaskTest)
target_link_libraries(KisUnsharpMaskTest kritaui Qt5::Test)
kde4_add_unit_test(KisUnsharpMaskTest TESTNAME krita-ui-kis_unsharp_mask_test ${kis_unsharp_mask_test_SRCS})
target_link_libraries(KisUnsharpMaskTest ${KDE4_KDEUI_LIBS} kritaui ${QT_QTTEST_LIBRARY})
......@@ -6,8 +6,6 @@ macro_add_unittest_definitions()
########### next target ###############
set(kis_exr_test_SRCS kis_exr_test.cpp )
add_executable(kis_exr_testNAME krita-fileformat-kis_exr_test ${kis_exr_test_SRCS})
add_test(kis_exr_test kis_exr_test)
ecm_mark_as_test(kis_exr_test)
kde4_add_unit_test(kis_exr_test TESTNAME krita-fileformat-kis_exr_test ${kis_exr_test_SRCS})
target_link_libraries(kis_exr_test kritaui Qt5::Test)
target_link_libraries(kis_exr_test ${KDE4_KDEUI_LIBS} kritaui ${QT_QTTEST_LIBRARY})
......@@ -6,8 +6,6 @@ macro_add_unittest_definitions()
########### next target ###############
set(kis_jpeg_test_SRCS kis_jpeg_test.cpp )
add_executable(kis_jpeg_testNAME krita-plugin-format-jpeg_test ${kis_jpeg_test_SRCS})
add_test(kis_jpeg_test kis_jpeg_test)
ecm_mark_as_test(kis_jpeg_test)
kde4_add_unit_test(kis_jpeg_test TESTNAME krita-plugin-format-jpeg_test ${kis_jpeg_test_SRCS})
target_link_libraries(kis_jpeg_test kritaui Qt5::Test)
target_link_libraries(kis_jpeg_test ${KDE4_KDEUI_LIBS} kritaui ${QT_QTTEST_LIBRARY})
......@@ -6,8 +6,6 @@ macro_add_unittest_definitions()
########### next target ###############
set(kis_png_test_SRCS kis_png_test.cpp )
add_executable(kis_png_testNAME krita-plugins-formats-png_test ${kis_png_test_SRCS})
add_test(kis_png_test kis_png_test)
ecm_mark_as_test(kis_png_test)
kde4_add_unit_test(kis_png_test TESTNAME krita-plugins-formats-png_test ${kis_png_test_SRCS})
target_link_libraries(kis_png_test kritaui Qt5::Test)
target_link_libraries(kis_png_test ${KDE4_KDEUI_LIBS} kritaui ${QT_QTTEST_LIBRARY})
......@@ -6,8 +6,6 @@ macro_add_unittest_definitions()
########### next target ###############
set(kis_ppm_test_SRCS kis_ppm_test.cpp )
add_executable(kis_ppm_testNAME krita-plugin-format-ppm_test ${kis_ppm_test_SRCS})
add_test(kis_ppm_test kis_ppm_test)
ecm_mark_as_test(kis_ppm_test)
kde4_add_unit_test(kis_ppm_test TESTNAME krita-plugin-format-ppm_test ${kis_ppm_test_SRCS})
target_link_libraries(kis_ppm_test kritaui Qt5::Test)
target_link_libraries(kis_ppm_test ${KDE4_KDEUI_LIBS} kritaui ${QT_QTTEST_LIBRARY})
......@@ -6,38 +6,28 @@ macro_add_unittest_definitions()
########### next target ###############
set(psd_header_test_SRCS psd_header_test.cpp ../psd_utils.cpp ../psd_header.cpp )
add_executable(psd_header_testNAME krita-psd-psd_header_test ${psd_header_test_SRCS})
add_test(psd_header_test psd_header_test)
ecm_mark_as_test(psd_header_test)
target_link_libraries(psd_header_test Qt5::Test)
kde4_add_unit_test(psd_header_test TESTNAME krita-psd-psd_header_test ${psd_header_test_SRCS})
target_link_libraries(psd_header_test ${KDE4_KDEUI_LIBS} ${QT_QTTEST_LIBRARY})
########### next target ###############
set(psd_utils_test_SRCS psd_utils_test.cpp ../psd_utils.cpp )
add_executable(psd_utils_testNAME krita-psd-psd_utils_test ${psd_utils_test_SRCS})
add_test(psd_utils_test psd_utils_test)
ecm_mark_as_test(psd_utils_test)
target_link_libraries(psd_utils_test Qt5::Test)
kde4_add_unit_test(psd_utils_test TESTNAME krita-psd-psd_utils_test ${psd_utils_test_SRCS})
target_link_libraries(psd_utils_test ${KDE4_KDEUI_LIBS} ${QT_QTTEST_LIBRARY})
########### next target ###############
set(psd_colormode_block_test_SRCS psd_colormode_block_test.cpp ../psd_colormode_block.cpp ../psd_header.cpp ../psd_utils.cpp)
add_executable(psd_colormode_block_testNAME krita-psd-psd_colormode_block_test ${psd_colormode_block_test_SRCS})
add_test(psd_colormode_block_test psd_colormode_block_test)
ecm_mark_as_test(psd_colormode_block_test)
target_link_libraries(psd_colormode_block_test Qt5::Test)
kde4_add_unit_test(psd_colormode_block_test TESTNAME krita-psd-psd_colormode_block_test ${psd_colormode_block_test_SRCS})
target_link_libraries(psd_colormode_block_test ${KDE4_KDEUI_LIBS} ${QT_QTTEST_LIBRARY})
########### next target ###############
set(compression_test_SRCS compression_test.cpp ../compression.cpp)
add_executable(compression_testNAME krita-psd-compression_test ${compression_test_SRCS})
add_test(compression_test compression_test)
ecm_mark_as_test(compression_test)
target_link_libraries(compression_test Qt5::Test)
kde4_add_unit_test(compression_test TESTNAME krita-psd-compression_test ${compression_test_SRCS})
target_link_libraries(compression_test ${KDE4_KDEUI_LIBS} ${QT_QTTEST_LIBRARY})
########### next target ###############
#set(kis_psd_test_SRCS kis_psd_test.cpp )
#add_executable(kis_psd_testNAME krita-plugins-formats-psd_test ${kis_psd_test_SRCS})
add_test(kis_psd_test kis_psd_test)
ecm_mark_as_test(kis_psd_test)
#target_link_libraries(kis_psd_test kritaui Qt5::Test)
#kde4_add_unit_test(kis_psd_test TESTNAME krita-plugins-formats-psd_test ${kis_psd_test_SRCS})
#target_link_libraries(kis_psd_test ${KDE4_KDEUI_LIBS} kritaui ${QT_QTTEST_LIBRARY})
......@@ -10,8 +10,6 @@ macro_add_unittest_definitions()
########### next target ###############
set(kis_tiff_test_SRCS kis_tiff_test.cpp )
add_executable(kis_tiff_testNAME krita-plugins-formats-tiff_test ${kis_tiff_test_SRCS})
add_test(kis_tiff_test kis_tiff_test)
ecm_mark_as_test(kis_tiff_test)
kde4_add_unit_test(kis_tiff_test TESTNAME krita-plugins-formats-tiff_test ${kis_tiff_test_SRCS})
target_link_libraries(kis_tiff_test kritaui Qt5::Test)
target_link_libraries(kis_tiff_test ${KDE4_KDEUI_LIBS} kritaui ${QT_QTTEST_LIBRARY})
......@@ -6,8 +6,6 @@ macro_add_unittest_definitions()
########### next target ###############
set(kis_xcf_test_SRCS kis_xcf_test.cpp )
add_executable(kis_xcf_testNAME krita-plugin-format-xcf_test ${kis_xcf_test_SRCS})
add_test(kis_xcf_test kis_xcf_test)
ecm_mark_as_test(kis_xcf_test)
kde4_add_unit_test(kis_xcf_test TESTNAME krita-plugin-format-xcf_test ${kis_xcf_test_SRCS})
target_link_libraries(kis_xcf_test kritaui Qt5::Test)
target_link_libraries(kis_xcf_test ${KDE4_KDEUI_LIBS} kritaui ${QT_QTTEST_LIBRARY})
......@@ -6,7 +6,5 @@ macro_add_unittest_definitions()
########### next target ###############
set(kis_brushop_test_SRCS kis_brushop_test.cpp ../../../../../sdk/tests/stroke_testing_utils.cpp)
add_executable(KisBrushOpTestNAME krita-plugins-KisBrushOpTest ${kis_brushop_test_SRCS})
add_test(KisBrushOpTest KisBrushOpTest)
ecm_mark_as_test(KisBrushOpTest)
target_link_libraries(KisBrushOpTest kritaimage kritaui kritalibpaintop Qt5::Test)
kde4_add_unit_test(KisBrushOpTest TESTNAME krita-plugins-KisBrushOpTest ${kis_brushop_test_SRCS})
target_link_libraries(KisBrushOpTest ${KDE4_KDEUI_LIBS} kritaimage kritaui kritalibpaintop ${QT_QTTEST_LIBRARY})
########### next target ###############
set(kis_sensors_test_SRCS kis_sensors_test.cpp )
add_executable(KisSensorsTestNAME krita-paintop-SensorsTest ${kis_sensors_test_SRCS})
add_test(KisSensorsTest KisSensorsTest)
ecm_mark_as_test(KisSensorsTest)
target_link_libraries(KisSensorsTest kritaimage kritalibpaintop Qt5::Test)
kde4_add_unit_test(KisSensorsTest TESTNAME krita-paintop-SensorsTest ${kis_sensors_test_SRCS})
target_link_libraries(KisSensorsTest ${KDE4_KDEUI_LIBS} kritaimage kritalibpaintop ${QT_QTTEST_LIBRARY})
set(kis_embedded_pattern_manager_test_SRCS kis_embedded_pattern_manager_test.cpp )
add_executable(KisEmbeddedPatternManagerTestNAME krita-paintop-EmbeddedPatternManagerTest ${kis_embedded_pattern_manager_test_SRCS})
add_test(KisEmbeddedPatternManagerTest KisEmbeddedPatternManagerTest)
ecm_mark_as_test(KisEmbeddedPatternManagerTest)
target_link_libraries(KisEmbeddedPatternManagerTest kritaimage kritalibpaintop Qt5::Test)
kde4_add_unit_test(KisEmbeddedPatternManagerTest TESTNAME krita-paintop-EmbeddedPatternManagerTest ${kis_embedded_pattern_manager_test_SRCS})
target_link_libraries(KisEmbeddedPatternManagerTest ${KDE4_KDEUI_LIBS} kritaimage kritalibpaintop ${QT_QTTEST_LIBRARY})
......@@ -6,7 +6,5 @@ macro_add_unittest_definitions()
########### next target ###############
set(move_stroke_test_SRCS move_stroke_test.cpp ${CMAKE_SOURCE_DIR}/krita/sdk/tests/stroke_testing_utils.cpp)
add_executable(MoveStrokeTestNAME krita-ui-MoveStrokeTest ${move_stroke_test_SRCS})
add_test(MoveStrokeTest MoveStrokeTest)
ecm_mark_as_test(MoveStrokeTest)
target_link_libraries(MoveStrokeTest kritadefaulttools kritaui kritaimage Qt5::Test)
kde4_add_unit_test(MoveStrokeTest TESTNAME krita-ui-MoveStrokeTest ${move_stroke_test_SRCS})
target_link_libraries(MoveStrokeTest ${KDE4_KDEUI_LIBS} kritadefaulttools kritaui kritaimage ${QT_QTTEST_LIBRARY})
......@@ -6,7 +6,5 @@ macro_add_unittest_definitions()
########### next target ###############
set(test_save_load_transform_args_SRCS test_save_load_transform_args.cpp )
add_executable(TestSaveLoadTransformArgsNAME krita-ui-TestSaveLoadTransformArgs ${test_save_load_transform_args_SRCS})
add_test(TestSaveLoadTransformArgs TestSaveLoadTransformArgs)
ecm_mark_as_test(TestSaveLoadTransformArgs)
target_link_libraries(TestSaveLoadTransformArgs kritatooltransform kritaui kritaimage Qt5::Test)
kde4_add_unit_test(TestSaveLoadTransformArgs TESTNAME krita-ui-TestSaveLoadTransformArgs ${test_save_load_transform_args_SRCS})
target_link_libraries(TestSaveLoadTransformArgs ${KDE4_KDEUI_LIBS} kritatooltransform kritaui kritaimage ${QT_QTTEST_LIBRARY})
This diff is collapsed.
......@@ -8,7 +8,7 @@ if (SHOULD_BUILD_LIB_CALLIGRA)
# add_subdirectory( kotext )
# add_subdirectory( flake )
# add_subdirectory( basicflakes )
# add_subdirectory( pigment )
add_subdirectory( pigment )
# add_subdirectory( main )
# add_subdirectory( kundo2 )
endif ()
......
This diff is collapsed.
......@@ -5,40 +5,32 @@ include_directories( ${KOPAGEAPP_INCLUDES} )
set(TestPAPageInsertCommand_test_SRCS TestPAPageInsertCommand.cpp )
add_executable(TestPAPageInsertCommandNAME libs-kopageapp-TestPAPageInsertCommand ${TestPAPageInsertCommand_test_SRCS})
add_test(TestPAPageInsertCommand TestPAPageInsertCommand)
ecm_mark_as_test(TestPAPageInsertCommand)
kde4_add_unit_test(TestPAPageInsertCommand TESTNAME libs-kopageapp-TestPAPageInsertCommand ${TestPAPageInsertCommand_test_SRCS})
target_link_libraries(TestPAPageInsertCommand kopageapp Qt5::Test)
target_link_libraries(TestPAPageInsertCommand kopageapp ${QT_QTTEST_LIBRARY})
########### next target ###############
set(TestPAPageDeleteCommand_test_SRCS TestPAPageDeleteCommand.cpp )
add_executable(TestPAPageDeleteCommandNAME libs-kopageapp-TestPAPageDeleteCommand ${TestPAPageDeleteCommand_test_SRCS})
add_test(TestPAPageDeleteCommand TestPAPageDeleteCommand)
ecm_mark_as_test(TestPAPageDeleteCommand)
kde4_add_unit_test(TestPAPageDeleteCommand TESTNAME libs-kopageapp-TestPAPageDeleteCommand ${TestPAPageDeleteCommand_test_SRCS})
target_link_libraries(TestPAPageDeleteCommand kopageapp Qt5::Test)
target_link_libraries(TestPAPageDeleteCommand kopageapp ${QT_QTTEST_LIBRARY})
########### next target ###############
set(TestPAPageMoveCommand_test_SRCS TestPAPageMoveCommand.cpp )
add_executable(TestPAPageMoveCommandNAME libs-kopageapp-TestPAPageMoveCommand ${TestPAPageMoveCommand_test_SRCS})
add_test(TestPAPageMoveCommand TestPAPageMoveCommand)
ecm_mark_as_test(TestPAPageMoveCommand)
kde4_add_unit_test(TestPAPageMoveCommand TESTNAME libs-kopageapp-TestPAPageMoveCommand ${TestPAPageMoveCommand_test_SRCS})
target_link_libraries(TestPAPageMoveCommand kopageapp Qt5::Test)
target_link_libraries(TestPAPageMoveCommand kopageapp ${QT_QTTEST_LIBRARY})
########### next target ###############
set(TestPACopyPastePage_test_SRCS TestPACopyPastePage.cpp )
add_executable(TestPACopyPastePageNAME libs-kopageapp-TestPACopyPastePage ${TestPACopyPastePage_test_SRCS})
add_test(TestPACopyPastePage TestPACopyPastePage)
ecm_mark_as_test(TestPACopyPastePage)
kde4_add_unit_test(TestPACopyPastePage TESTNAME libs-kopageapp-TestPACopyPastePage ${TestPACopyPastePage_test_SRCS})
target_link_libraries(TestPACopyPastePage kopageapp Qt5::Test)
target_link_libraries(TestPACopyPastePage kopageapp ${QT_QTTEST_LIBRARY})
########### next target ###############
......@@ -4,7 +4,7 @@ include_directories(
${CMAKE_SOURCE_DIR}/libs/widgets
${FLAKE_INCLUDES}
${KOREPORT_INCLUDES}
${QT_INCLUDES}
)
......@@ -12,10 +12,8 @@ include_directories(
set(KoReportTest_SRCS KoReportTest.cpp)
add_executable(KoReportTestNAME KoReportTest ${KoReportTest_SRCS})
add_test(KoReportTest KoReportTest)
ecm_mark_as_test(KoReportTest)
kde4_add_unit_test(KoReportTest TESTNAME KoReportTest ${KoReportTest_SRCS})
target_link_libraries(KoReportTest ${KOREPORT_LIBS} Qt5::Test)
target_link_libraries(KoReportTest ${KOREPORT_LIBS} ${KDE4_KDEUI_LIBS} ${QT_QTTEST_LIBRARY})
########## next target ###############
set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
include_directories(
${KOTEXT_INCLUDES}
)
${QT_INCLUDES})
add_definitions(-DSPECS_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/specs/")
########### next target ###############
set(TestStyles_test_SRCS TestStyles.cpp)
add_executable(TestStylesNAME libs-kotext-styles-TestStyles ${TestStyles_test_SRCS})
add_test(TestStyles TestStyles)
ecm_mark_as_test(TestStyles)
target_link_libraries(TestStyles kotext Qt5::Test)
kde4_add_unit_test(TestStyles TESTNAME libs-kotext-styles-TestStyles ${TestStyles_test_SRCS})
target_link_libraries(TestStyles kotext ${QT_QTTEST_LIBRARY})
########### next target ###############
set(TestListStyly_test_SRCS TestListStyle.cpp)
add_executable(TestListStyleNAME libs-kotext-styles-TestListStyle ${TestListStyly_test_SRCS})
add_test(TestListStyle TestListStyle)
ecm_mark_as_test(TestListStyle)
target_link_libraries(TestListStyle kotext Qt5::Test)
kde4_add_unit_test(TestListStyle TESTNAME libs-kotext-styles-TestListStyle ${TestListStyly_test_SRCS})
target_link_libraries(TestListStyle kotext ${QT_QTTEST_LIBRARY})
########### next target ###############
set(TestSectionStyle_test_SRCS TestSectionStyle.cpp)
add_executable(TestSectionStyleNAME libs-kotext-styles-TestSectionStyle ${TestSectionStyle_test_SRCS})
add_test(TestSectionStyle TestSectionStyle)
ecm_mark_as_test(TestSectionStyle)
target_link_libraries(TestSectionStyle kotext Qt5::Test)
kde4_add_unit_test(TestSectionStyle TESTNAME libs-kotext-styles-TestSectionStyle ${TestSectionStyle_test_SRCS})
target_link_libraries(TestSectionStyle kotext ${QT_QTTEST_LIBRARY})
########### next target ###############
set(TestTableCellStyle_test_SRCS TestTableCellStyle.cpp)
add_executable(TestTableCellStyleNAME libs-kotext-styles-TestTableCellStyle ${TestTableCellStyle_test_SRCS})
add_test(TestTableCellStyle TestTableCellStyle)
ecm_mark_as_test(TestTableCellStyle)
target_link_libraries(TestTableCellStyle kotext Qt5::Test)
kde4_add_unit_test(TestTableCellStyle TESTNAME libs-kotext-styles-TestTableCellStyle ${TestTableCellStyle_test_SRCS})
target_link_libraries(TestTableCellStyle kotext ${QT_QTTEST_LIBRARY})
########### next target ###############
set(TestStyleManager_test_SRCS TestStyleManager.cpp)
add_executable(TestStyleManagerNAME libs-kotext-styles-TestStyleManager ${TestStyleManager_test_SRCS})
add_test(TestStyleManager TestStyleManager)
ecm_mark_as_test(TestStyleManager)
target_link_libraries(TestStyleManager kotext Qt5::Test)
kde4_add_unit_test(TestStyleManager TESTNAME libs-kotext-styles-TestStyleManager ${TestStyleManager_test_SRCS})
target_link_libraries(TestStyleManager kotext ${QT_QTTEST_LIBRARY})
########### next target ###############
#set(TestOpenDocumentStyle_test_SRCS TestOpenDocumentStyle.cpp)
#add_executable(TestOpenDocumentStyleNAME libs-kotext-styles-TestOpenDocumentStyle ${TestOpenDocumentStyle_test_SRCS})
add_test(TestOpenDocumentStyle TestOpenDocumentStyle)
ecm_mark_as_test(TestOpenDocumentStyle)
#target_link_libraries(TestOpenDocumentStyle kotext Qt5::Test ${QT_XML_LIBRARY})
#kde4_add_unit_test(TestOpenDocumentStyle TESTNAME libs-kotext-styles-TestOpenDocumentStyle ${TestOpenDocumentStyle_test_SRCS})
#target_link_libraries(TestOpenDocumentStyle kotext ${QT_QTTEST_LIBRARY} ${QT_XML_LIBRARY})
......@@ -9,47 +9,35 @@ endif()
########### next target ###############
set(TestBorder_test_SRCS TestBorder.cpp)
add_executable(TestBorderNAME libs-kotext-TestBorder ${TestBorder_test_SRCS})
add_test(TestBorder TestBorder)
ecm_mark_as_test(TestBorder)
target_link_libraries(TestBorder kotext Qt5::Test)
kde4_add_unit_test(TestBorder TESTNAME libs-kotext-TestBorder ${TestBorder_test_SRCS})
target_link_libraries(TestBorder kotext ${QT_QTTEST_LIBRARY})
########### next target ###############
set(TestKoTableColumnAndRowStyleManager_test_SRCS TestKoTableColumnAndRowStyleManager.cpp)
add_executable(TestKoTableColumnAndRowStyleManagerNAME libs-kotext-KoTableColumnAndRowStyleManager ${TestKoTableColumnAndRowStyleManager_test_SRCS})
add_test(TestKoTableColumnAndRowStyleManager TestKoTableColumnAndRowStyleManager)
ecm_mark_as_test(TestKoTableColumnAndRowStyleManager)
target_link_libraries(TestKoTableColumnAndRowStyleManager kotext Qt5::Test)
kde4_add_unit_test(TestKoTableColumnAndRowStyleManager TESTNAME libs-kotext-KoTableColumnAndRowStyleManager ${TestKoTableColumnAndRowStyleManager_test_SRCS})
target_link_libraries(TestKoTableColumnAndRowStyleManager kotext ${QT_QTTEST_LIBRARY})
########### next target ###############
set(TestSection_test_SRCS TestSection.cpp)
add_executable(TestSectionNAME libs-kotext-TestSection ${TestSection_test_SRCS})
add_test(TestSection TestSection)
ecm_mark_as_test(TestSection)
target_link_libraries(TestSection kotext Qt5::Test)
kde4_add_unit_test(TestSection TESTNAME libs-kotext-TestSection ${TestSection_test_SRCS})
target_link_libraries(TestSection kotext ${QT_QTTEST_LIBRARY})
########### next target ###############
set(TestKoTextEditor_test_SRCS TestKoTextEditor.cpp)
add_executable(TestKoTextEditorNAME libs-kotext-TestKoTextEditor ${TestKoTextEditor_test_SRCS})
add_test(TestKoTextEditor TestKoTextEditor)
ecm_mark_as_test(TestKoTextEditor)
target_link_libraries(TestKoTextEditor kotext Qt5::Test)
kde4_add_unit_test(TestKoTextEditor TESTNAME libs-kotext-TestKoTextEditor ${TestKoTextEditor_test_SRCS})
target_link_libraries(TestKoTextEditor kotext ${QT_QTTEST_LIBRARY})
########### next target ###############
set(TestKoBookmarkManager_test_SRCS TestKoBookmarkManager.cpp)
add_executable(TestKoBookmarkManagerNAME libs-kotext-TestKoBookmarkManager ${TestKoBookmarkManager_test_SRCS})
add_test(TestKoBookmarkManager TestKoBookmarkManager)
ecm_mark_as_test(TestKoBookmarkManager)
target_link_libraries(TestKoBookmarkManager kotext Qt5::Test)
kde4_add_unit_test(TestKoBookmarkManager TESTNAME libs-kotext-TestKoBookmarkManager ${TestKoBookmarkManager_test_SRCS})
target_link_libraries(TestKoBookmarkManager kotext ${QT_QTTEST_LIBRARY})
########### next target ###############
set(TestKoInlineTextObjectManager_test_SRCS TestKoInlineTextObjectManager.cpp)
add_executable(TestKoInlineTextObjectManagerNAME libs-kotext-TestKoInlineTextObjectManager ${TestKoInlineTextObjectManager_test_SRCS})
add_test(TestKoInlineTextObjectManager TestKoInlineTextObjectManager)
ecm_mark_as_test(TestKoInlineTextObjectManager)
target_link_libraries(TestKoInlineTextObjectManager kotext Qt5::Test)
kde4_add_unit_test(TestKoInlineTextObjectManager TESTNAME libs-kotext-TestKoInlineTextObjectManager ${TestKoInlineTextObjectManager_test_SRCS})
target_link_libraries(TestKoInlineTextObjectManager kotext ${QT_QTTEST_LIBRARY})
......@@ -6,47 +6,37 @@ add_definitions(-DFILES_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/data/")
########### next target ###############
set(priorityqueue_test_SRCS priorityqueue_test.cpp )
add_executable(priorityqueue_testNAME libs-komain-priorityQueueTest ${priorityqueue_test_SRCS})
add_test(priorityqueue_test priorityqueue_test)
ecm_mark_as_test(priorityqueue_test)
target_link_libraries(priorityqueue_test Qt5::Test )
kde4_add_unit_test(priorityqueue_test TESTNAME libs-komain-priorityQueueTest ${priorityqueue_test_SRCS})
target_link_libraries(priorityqueue_test ${QT_QTTEST_LIBRARY} ${KDE4_KDECORE_LIBS})
########### next target ###############
set(filterchain_test_SRCS filterchain_test.cpp )
add_executable(filterchain_testNAME libs-komain-filterchainTest ${filterchain_test_SRCS})
add_test(filterchain_test filterchain_test)
ecm_mark_as_test(filterchain_test)
target_link_libraries(filterchain_test komain )
kde4_add_unit_test(filterchain_test TESTNAME libs-komain-filterchainTest ${filterchain_test_SRCS})
target_link_libraries(filterchain_test ${KDE4_KDECORE_LIBS} komain )
########### next target ###############
set(filter_graph_SRCS filter_graph.cpp )
add_executable(filter_graphNAME libs-komain-filterGraphTest ${filter_graph_SRCS})
add_test(filter_graph filter_graph)
ecm_mark_as_test(filter_graph)
target_link_libraries(filter_graph komain )
kde4_add_unit_test(filter_graph TESTNAME libs-komain-filterGraphTest ${filter_graph_SRCS})
target_link_libraries(filter_graph ${KDE4_KDECORE_LIBS} komain )
########### next target ###############
set(rtreetestapp_SRCS rtreetestapp.cpp Tool.cpp )
add_executable(rtreetestapp TEST ${rtreetestapp_SRCS})
target_link_libraries(rtreetestapp komain Qt5::Test )
kde4_add_executable(rtreetestapp TEST ${rtreetestapp_SRCS})
target_link_libraries(rtreetestapp komain ${QT_QTTEST_LIBRARY} )
########### next target ###############
set(documentstructuretest_SRCS documentstructuretest.cpp )
add_executable(DocumentStructureTestNAME libs-komain-DocumentStructureTest ${documentstructuretest_SRCS})
add_test(DocumentStructureTest DocumentStructureTest)
ecm_mark_as_test(DocumentStructureTest)
target_link_libraries(DocumentStructureTest komain Qt5::Test)
kde4_add_unit_test(DocumentStructureTest TESTNAME libs-komain-DocumentStructureTest ${documentstructuretest_SRCS})
target_link_libraries(DocumentStructureTest komain ${QT_QTTEST_LIBRARY})
########### next target ###############
set(findmatch_test_SRCS testfindmatch.cpp )
add_executable(testfindmatchNAME libs-komain-testfindmatch ${findmatch_test_SRCS})
add_test(testfindmatch testfindmatch)
ecm_mark_as_test(testfindmatch)
target_link_libraries(testfindmatch komain Qt5::Test)
kde4_add_unit_test(testfindmatch TESTNAME libs-komain-testfindmatch ${findmatch_test_SRCS})
target_link_libraries(testfindmatch komain ${QT_QTTEST_LIBRARY})
......@@ -4,101 +4,79 @@ include_directories( ${KOODF_INCLUDES} )
########### next target ###############
set(TestKoGenStyles_SRCS TestKoGenStyles.cpp )
add_executable(TestKoGenStylesNAME libs-odf-TestKoGenStyles ${TestKoGenStyles_SRCS})
add_test(TestKoGenStyles TestKoGenStyles)
ecm_mark_as_test(TestKoGenStyles)
target_link_libraries(TestKoGenStyles koodf Qt5::Test)
kde4_add_unit_test(TestKoGenStyles TESTNAME libs-odf-TestKoGenStyles ${TestKoGenStyles_SRCS})
target_link_libraries(TestKoGenStyles koodf ${QT_QTTEST_LIBRARY})
########### next target ###############
set(TestOdfSettings_SRCS TestOdfSettings.cpp )
add_executable(TestOdfSettingsNAME libs-odf-TestOdfSettings ${TestOdfSettings_SRCS})
add_test(TestOdfSettings TestOdfSettings)
ecm_mark_as_test(TestOdfSettings)
target_link_libraries(TestOdfSettings koodf Qt5::Gui Qt5::Test)
kde4_add_unit_test(TestOdfSettings TESTNAME libs-odf-TestOdfSettings ${TestOdfSettings_SRCS})
target_link_libraries(TestOdfSettings koodf ${QT_QTGUI_LIBRARY} ${QT_QTTEST_LIBRARY})
########### next target ###############
set(TestKoOdfLoadingContext_SRCS TestKoOdfLoadingContext.cpp )
add_executable(TestKoOdfLoadingContextNAME libs-odf-TestKoOdfLoadingContext ${TestKoOdfLoadingContext_SRCS})
add_test(TestKoOdfLoadingContext TestKoOdfLoadingContext)
ecm_mark_as_test(TestKoOdfLoadingContext)
target_link_libraries(TestKoOdfLoadingContext koodf Qt5::Gui Qt5::Test)
kde4_add_unit_test(TestKoOdfLoadingContext TESTNAME libs-odf-TestKoOdfLoadingContext ${TestKoOdfLoadingContext_SRCS})
target_link_libraries(TestKoOdfLoadingContext koodf ${QT_QTGUI_LIBRARY} ${QT_QTTEST_LIBRARY})
########### next target ###############
set(xmlwritertest_SRCS TestXmlWriter.cpp )
add_executable(TestXmlWriterNAME libs-odf-TestXmlWriter ${xmlwritertest_SRCS})
add_test(TestXmlWriter TestXmlWriter)
ecm_mark_as_test(TestXmlWriter)
kde4_add_unit_test(TestXmlWriter TESTNAME libs-odf-TestXmlWriter ${xmlwritertest_SRCS})
target_link_libraries(TestXmlWriter koodf Qt5::Test )
target_link_libraries(TestXmlWriter koodf ${QT_QTTEST_LIBRARY} ${KDE4_KDEUI_LIBS})
########### next target ###############
set(xmlreadertest_SRCS TestXmlReader.cpp )
add_executable(TestXmlReaderNAME libs-odf-TestXmlReader ${xmlreadertest_SRCS})
add_test(TestXmlReader TestXmlReader)
ecm_mark_as_test(TestXmlReader)
target_link_libraries(TestXmlReader koodf Qt5::Test )
kde4_add_unit_test(TestXmlReader TESTNAME libs-odf-TestXmlReader ${xmlreadertest_SRCS})
target_link_libraries(TestXmlReader koodf ${QT_QTTEST_LIBRARY} ${KDE4_KDEUI_LIBS})
########### next target ###############
set(xmlreadertestwithoutspaces_SRCS TestXmlReaderWithoutSpaces.cpp )
add_executable(TestXmlReaderWithoutSpacesNAME libs-odf-TestXmlReaderWithoutSpaces ${xmlreadertestwithoutspaces_SRCS})
add_test(TestXmlReaderWithoutSpaces TestXmlReaderWithoutSpaces)
ecm_mark_as_test(TestXmlReaderWithoutSpaces)