Cleanup: Sort node types alphabetically
[blender.git] / intern / cycles / test / CMakeLists.txt
1 # Copyright 2011-2020 Blender Foundation
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 if(WITH_GTESTS)
16   Include(GTestTesting)
17
18   # Otherwise we get warnings here that we can't fix in external projects
19   remove_strict_flags()
20 endif()
21
22 set(INC
23   .
24   ..
25   ../device
26   ../graph
27   ../kernel
28   ../render
29   ../util
30 )
31
32 set(ALL_CYCLES_LIBRARIES
33   cycles_device
34   cycles_kernel
35   cycles_render
36   cycles_bvh
37   cycles_graph
38   cycles_subd
39   cycles_util
40   extern_clew
41   ${CYCLES_GL_LIBRARIES}
42 )
43 include_directories(${INC})
44
45 cycles_link_directories()
46
47 set(SRC
48   render_graph_finalize_test.cpp
49   util_aligned_malloc_test.cpp
50   util_path_test.cpp
51   util_string_test.cpp
52   util_task_test.cpp
53   util_time_test.cpp
54   util_transform_test.cpp
55 )
56
57 if(CXX_HAS_AVX)
58   list(APPEND SRC
59     util_avxf_avx_test.cpp
60   )
61   set_source_files_properties(util_avxf_avx_test.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_AVX_KERNEL_FLAGS}")
62 endif()
63 if(CXX_HAS_AVX2)
64   list(APPEND SRC
65     util_avxf_avx2_test.cpp
66   )
67   set_source_files_properties(util_avxf_avx2_test.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_AVX2_KERNEL_FLAGS}")
68 endif()
69
70 if(WITH_GTESTS)
71   BLENDER_SRC_GTEST(cycles "${SRC}" "${ALL_CYCLES_LIBRARIES}")
72   cycles_target_link_libraries(cycles_test)
73 endif()