bc9def7ca41218c5242e7a210be70dfe9239f5e4
[blender.git] / intern / cycles / util / CMakeLists.txt
1
2 set(INC
3         ..
4         ../../glew-mx
5 )
6
7 set(INC_SYS
8         ${GLEW_INCLUDE_DIR}
9 )
10
11 set(SRC
12         util_aligned_malloc.cpp
13         util_debug.cpp
14         util_logging.cpp
15         util_math_cdf.cpp
16         util_md5.cpp
17         util_path.cpp
18         util_string.cpp
19         util_simd.cpp
20         util_system.cpp
21         util_task.cpp
22         util_thread.cpp
23         util_time.cpp
24         util_transform.cpp
25         util_windows.cpp
26 )
27
28 if(WITH_CYCLES_STANDALONE AND WITH_CYCLES_STANDALONE_GUI)
29         list(APPEND SRC
30                 util_view.cpp
31         )
32 endif()
33
34 set(SRC_HEADERS
35         util_algorithm.h
36         util_aligned_malloc.h
37         util_args.h
38         util_atomic.h
39         util_boundbox.h
40         util_debug.h
41         util_defines.h
42         util_guarded_allocator.cpp
43         util_foreach.h
44         util_function.h
45         util_guarded_allocator.h
46         util_half.h
47         util_hash.h
48         util_image.h
49         util_image_impl.h
50         util_list.h
51         util_logging.h
52         util_map.h
53         util_math.h
54         util_math_cdf.h
55         util_math_fast.h
56         util_math_intersect.h
57         util_math_float2.h
58         util_math_float3.h
59         util_math_float4.h
60         util_math_int2.h
61         util_math_int3.h
62         util_math_int4.h
63         util_math_matrix.h
64         util_md5.h
65         util_opengl.h
66         util_optimization.h
67         util_param.h
68         util_path.h
69         util_progress.h
70         util_queue.h
71         util_rect.h
72         util_set.h
73         util_simd.h
74         util_sky_model.cpp
75         util_sky_model.h
76         util_sky_model_data.h
77         util_avxf.h
78         util_sseb.h
79         util_ssef.h
80         util_ssei.h
81         util_stack_allocator.h
82         util_static_assert.h
83         util_stats.h
84         util_string.h
85         util_system.h
86         util_task.h
87         util_texture.h
88         util_thread.h
89         util_time.h
90         util_transform.h
91         util_types.h
92         util_types_float2.h
93         util_types_float2_impl.h
94         util_types_float3.h
95         util_types_float3_impl.h
96         util_types_float4.h
97         util_types_float4_impl.h
98         util_types_int2.h
99         util_types_int2_impl.h
100         util_types_int3.h
101         util_types_int3_impl.h
102         util_types_int4.h
103         util_types_int4_impl.h
104         util_types_uchar2.h
105         util_types_uchar2_impl.h
106         util_types_uchar3.h
107         util_types_uchar3_impl.h
108         util_types_uchar4.h
109         util_types_uchar4_impl.h
110         util_types_uint2.h
111         util_types_uint2_impl.h
112         util_types_uint3.h
113         util_types_uint3_impl.h
114         util_types_uint4.h
115         util_types_uint4_impl.h
116         util_types_vector3.h
117         util_types_vector3_impl.h
118         util_vector.h
119         util_version.h
120         util_view.h
121         util_windows.h
122         util_xml.h
123 )
124
125 include_directories(${INC})
126 include_directories(SYSTEM ${INC_SYS})
127
128 add_definitions(${GL_DEFINITIONS})
129
130 add_library(cycles_util ${SRC} ${SRC_HEADERS})