-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
CMakeLists.txt
32 lines (25 loc) · 1.21 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
include(GdalTestTarget)
include(GdalSetRuntimeEnv)
gdal_set_runtime_env(TEST_ENV)
if (MINGW)
list(APPEND TEST_ENV SKIP_MEM_INTENSIVE_TEST=YES)
endif ()
if (WIN32)
# If running GDAL as a CustomBuild Command os MSBuild, "ERROR bla:" is considered as failing the job. This is rarely
# the intended behavior
list(APPEND TEST_ENV "CPL_ERROR_SEPARATOR=\\;")
endif ()
gdal_test_target(testperfcopywords testperfcopywords.cpp)
gdal_test_target(testperfdeinterleave testperfdeinterleave.cpp)
add_executable(bench_ogr_batch bench_ogr_batch.cpp)
gdal_standard_includes(bench_ogr_batch)
target_link_libraries(bench_ogr_batch PRIVATE $<TARGET_NAME:${GDAL_LIB_TARGET_NAME}>)
add_executable(bench_ogr_c_api bench_ogr_c_api.cpp)
gdal_standard_includes(bench_ogr_c_api)
target_link_libraries(bench_ogr_c_api PRIVATE $<TARGET_NAME:${GDAL_LIB_TARGET_NAME}>)
gdal_test_target(testperf_gdal_minmax_element testperf_gdal_minmax_element.cpp)
if (GDAL_ENABLE_ARM_NEON_OPTIMIZATIONS)
target_compile_definitions(testperf_gdal_minmax_element PRIVATE -DUSE_NEON_OPTIMIZATIONS)
endif()
add_test(NAME testperf_gdal_minmax_element COMMAND testperf_gdal_minmax_element)
set_property(TEST testperf_gdal_minmax_element PROPERTY ENVIRONMENT "${TEST_ENV}")