c677f2b13f442a5bd069f9477aad8a112ed7b4e4
[blender.git] / intern / cycles / util / CMakeLists.txt
1
2 set(INC
3         .
4 )
5 set(INC_SYS
6         ${GLEW_INCLUDE_PATH}
7         ${OPENGL_INCLUDE_DIR}
8 )
9
10 set(SRC
11         util_attribute.cpp
12         util_cache.cpp
13         util_cuda.cpp
14         util_dynlib.cpp
15         util_md5.cpp
16         util_memarena.cpp
17         util_opencl.cpp
18         util_path.cpp
19         util_string.cpp
20         util_system.cpp
21         util_task.cpp
22         util_time.cpp
23         util_transform.cpp
24 )
25
26 if(WITH_CYCLES_TEST)
27         list(APPEND SRC
28                 util_view.cpp
29         )
30 endif()
31
32 set(SRC_HEADERS
33         util_algorithm.h
34         util_args.h
35         util_attribute.h
36         util_boundbox.h
37         util_cache.h
38         util_cuda.h
39         util_debug.h
40         util_dynlib.h
41         util_foreach.h
42         util_function.h
43         util_hash.h
44         util_image.h
45         util_list.h
46         util_map.h
47         util_math.h
48         util_md5.h
49         util_memarena.h
50         util_opencl.h
51         util_opengl.h
52         util_param.h
53         util_path.h
54         util_progress.h
55         util_set.h
56         util_string.h
57         util_system.h
58         util_task.h
59         util_thread.h
60         util_time.h
61         util_transform.h
62         util_types.h
63         util_view.h
64         util_vector.h
65         util_xml.h
66 )
67
68 include_directories(${INC})
69 include_directories(SYSTEM ${INC_SYS})
70
71 add_library(cycles_util ${SRC} ${SRC_HEADERS})