blob: b2c67b3635c20c7e4142bd127d51fe80266f64d5 (
plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# SPDX-License-Identifier: Apache-2.0
# Copyright 2011-2020 Blender Foundation
if(WITH_GTESTS)
Include(GTestTesting)
# Otherwise we get warnings here that we can't fix in external projects
remove_strict_flags()
endif()
set(INC
..
)
set(ALL_CYCLES_LIBRARIES
cycles_kernel
cycles_integrator
cycles_scene
cycles_session
cycles_bvh
cycles_graph
cycles_subd
cycles_device
cycles_util
extern_clew
${CYCLES_GL_LIBRARIES}
)
include_directories(${INC})
set(SRC
integrator_adaptive_sampling_test.cpp
integrator_render_scheduler_test.cpp
integrator_tile_test.cpp
render_graph_finalize_test.cpp
util_aligned_malloc_test.cpp
util_math_test.cpp
util_path_test.cpp
util_string_test.cpp
util_task_test.cpp
util_time_test.cpp
util_transform_test.cpp
)
# Disable AVX tests on macOS. Rosetta has problems running them, and other
# platforms should be enough to verify AVX operations are implemented correctly.
if(NOT APPLE)
if(CXX_HAS_AVX)
list(APPEND SRC
util_avxf_avx_test.cpp
)
set_source_files_properties(util_avxf_avx_test.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_AVX_KERNEL_FLAGS}")
endif()
if(CXX_HAS_AVX2)
list(APPEND SRC
util_avxf_avx2_test.cpp
)
set_source_files_properties(util_avxf_avx2_test.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_AVX2_KERNEL_FLAGS}")
endif()
endif()
if(WITH_GTESTS)
BLENDER_SRC_GTEST(cycles "${SRC}" "${ALL_CYCLES_LIBRARIES}")
cycles_target_link_libraries(cycles_test)
endif()
|