CMakeLists.txt 4.78 KB
Newer Older
1
set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
Boudewijn Rempt's avatar
Boudewijn Rempt committed
2 3
include_directories(
    ${CMAKE_SOURCE_DIR}/sdk/tests
Stefano Bonicatti's avatar
Stefano Bonicatti committed
4
    ${CMAKE_SOURCE_DIR}/libs/pigment
Boudewijn Rempt's avatar
Boudewijn Rempt committed
5
    ${CMAKE_SOURCE_DIR}/libs/pigment/compositeops
6 7
)
include_directories(SYSTEM
Boudewijn Rempt's avatar
Boudewijn Rempt committed
8
    ${EIGEN3_INCLUDE_DIR}
9
    ${Boost_INCLUDE_DIRS}
Boudewijn Rempt's avatar
Boudewijn Rempt committed
10
)
11

12 13

set(LINK_VC_LIB)
14 15
if(HAVE_VC)
  include_directories(${Vc_INCLUDE_DIR})
16
#  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Vc_DEFINITIONS}")
17
  set(LINK_VC_LIB ${Vc_LIBRARIES})
18
endif()
19

Dmitry Kazakov's avatar
Dmitry Kazakov committed
20
macro_add_unittest_definitions()
21

22 23
########### next target ###############

24
set(kis_datamanager_benchmark_SRCS kis_datamanager_benchmark.cpp)
25
set(kis_hiterator_benchmark_SRCS kis_hline_iterator_benchmark.cpp)
26
set(kis_viterator_benchmark_SRCS kis_vline_iterator_benchmark.cpp)
27
set(kis_random_iterator_benchmark_SRCS kis_random_iterator_benchmark.cpp)
28
set(kis_projection_benchmark_SRCS kis_projection_benchmark.cpp)
29 30
set(kis_bcontrast_benchmark_SRCS kis_bcontrast_benchmark.cpp)
set(kis_blur_benchmark_SRCS kis_blur_benchmark.cpp)
Thorsten Zachmann's avatar
Thorsten Zachmann committed
31
set(kis_level_filter_benchmark_SRCS kis_level_filter_benchmark.cpp)
Lukáš Tvrdý's avatar
Lukáš Tvrdý committed
32
set(kis_painter_benchmark_SRCS kis_painter_benchmark.cpp)
33
set(kis_stroke_benchmark_SRCS kis_stroke_benchmark.cpp)
Cyrille Berger's avatar
Cyrille Berger committed
34
set(kis_fast_math_benchmark_SRCS kis_fast_math_benchmark.cpp)
35
set(kis_floodfill_benchmark_SRCS kis_floodfill_benchmark.cpp)
36
set(kis_gradient_benchmark_SRCS kis_gradient_benchmark.cpp)
37
set(kis_mask_generator_benchmark_SRCS kis_mask_generator_benchmark.cpp)
38
set(kis_low_memory_benchmark_SRCS kis_low_memory_benchmark.cpp)
39
set(kis_filter_selections_benchmark_SRCS kis_filter_selections_benchmark.cpp)
40
set(kis_composition_benchmark_SRCS kis_composition_benchmark.cpp)
41

42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
krita_add_benchmark(KisDatamanagerBenchmark TESTNAME krita-benchmarks-KisDataManager ${kis_datamanager_benchmark_SRCS})
krita_add_benchmark(KisHLineIteratorBenchmark TESTNAME krita-benchmarks-KisHLineIterator ${kis_hiterator_benchmark_SRCS})
krita_add_benchmark(KisVLineIteratorBenchmark TESTNAME krita-benchmarks-KisVLineIterator ${kis_viterator_benchmark_SRCS})
krita_add_benchmark(KisRandomIteratorBenchmark TESTNAME krita-benchmarks-KisRandomIterator ${kis_random_iterator_benchmark_SRCS})
krita_add_benchmark(KisProjectionBenchmark TESTNAME krita-benchmarks-KisProjectionBenchmark ${kis_projection_benchmark_SRCS})
krita_add_benchmark(KisBContrastBenchmark TESTNAME krita-benchmarks-KisBContrastBenchmark ${kis_bcontrast_benchmark_SRCS})
krita_add_benchmark(KisBlurBenchmark TESTNAME krita-benchmarks-KisBlurBenchmark ${kis_blur_benchmark_SRCS})
krita_add_benchmark(KisLevelFilterBenchmark TESTNAME krita-benchmarks-KisLevelFilterBenchmark ${kis_level_filter_benchmark_SRCS})
krita_add_benchmark(KisPainterBenchmark TESTNAME krita-benchmarks-KisPainterBenchmark ${kis_painter_benchmark_SRCS})
krita_add_benchmark(KisStrokeBenchmark TESTNAME krita-benchmarks-KisStrokeBenchmark ${kis_stroke_benchmark_SRCS})
krita_add_benchmark(KisFastMathBenchmark TESTNAME krita-benchmarks-KisFastMath ${kis_fast_math_benchmark_SRCS})
krita_add_benchmark(KisFloodfillBenchmark TESTNAME krita-benchmarks-KisFloodFill ${kis_floodfill_benchmark_SRCS})
krita_add_benchmark(KisGradientBenchmark TESTNAME krita-benchmarks-KisGradientFill ${kis_gradient_benchmark_SRCS})
krita_add_benchmark(KisMaskGeneratorBenchmark TESTNAME krita-benchmarks-KisMaskGenerator ${kis_mask_generator_benchmark_SRCS})
krita_add_benchmark(KisLowMemoryBenchmark TESTNAME krita-benchmarks-KisLowMemory ${kis_low_memory_benchmark_SRCS})
krita_add_benchmark(KisFilterSelectionsBenchmark TESTNAME krita-image-KisFilterSelectionsBenchmark ${kis_filter_selections_benchmark_SRCS})
krita_add_benchmark(KisCompositionBenchmark TESTNAME krita-benchmarks-KisComposition ${kis_composition_benchmark_SRCS})
59

60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
target_link_libraries(KisDatamanagerBenchmark  kritaimage  Qt5::Test)
target_link_libraries(KisHLineIteratorBenchmark  kritaimage  Qt5::Test)
target_link_libraries(KisVLineIteratorBenchmark  kritaimage  Qt5::Test)
target_link_libraries(KisRandomIteratorBenchmark  kritaimage  Qt5::Test)
target_link_libraries(KisProjectionBenchmark  kritaimage  kritaui Qt5::Test)
target_link_libraries(KisBContrastBenchmark  kritaimage  Qt5::Test)
target_link_libraries(KisBlurBenchmark  kritaimage  Qt5::Test)
target_link_libraries(KisLevelFilterBenchmark kritaimage  Qt5::Test)
target_link_libraries(KisPainterBenchmark  kritaimage  Qt5::Test)
target_link_libraries(KisStrokeBenchmark  kritaimage  Qt5::Test)
target_link_libraries(KisFastMathBenchmark  kritaimage  Qt5::Test)
target_link_libraries(KisFloodfillBenchmark  kritaimage  Qt5::Test)
target_link_libraries(KisGradientBenchmark  kritaimage  Qt5::Test)
target_link_libraries(KisLowMemoryBenchmark  kritaimage  Qt5::Test)
target_link_libraries(KisFilterSelectionsBenchmark   kritaimage  Qt5::Test)
target_link_libraries(KisCompositionBenchmark  kritaimage  Qt5::Test ${LINK_VC_LIB})
target_link_libraries(KisMaskGeneratorBenchmark  kritaimage  Qt5::Test)