ea675456e6de9042a3cebfd0de6b6da629f5c161
[blender.git] / intern / cycles / kernel / osl / CMakeLists.txt
1
2 set(INC
3         .
4         ..
5         ../svm
6         ../../render
7         ../../util
8         ../../device
9 )
10
11 set(SRC
12         background.cpp
13         bsdf_ashikhmin_velvet.cpp
14         bsdf_diffuse.cpp
15         bsdf_oren_nayar.cpp
16         bsdf_phong.cpp
17         bsdf_microfacet.cpp
18         bsdf_reflection.cpp
19         bsdf_refraction.cpp
20         bsdf_transparent.cpp
21         bsdf_ward.cpp
22         bsdf_westin.cpp
23         bssrdf.cpp
24         debug.cpp
25         emissive.cpp
26         osl_closures.cpp
27         osl_services.cpp
28         osl_shader.cpp
29         vol_subsurface.cpp
30 )
31
32 set(HEADER_SRC
33         osl_closures.h
34         osl_globals.h
35         osl_services.h
36         osl_shader.h
37 )
38
39 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${RTTI_DISABLE_FLAGS}")
40
41 include_directories(${INC})
42
43 add_library(cycles_kernel_osl ${SRC} ${HEADER_SRC})
44
45 add_subdirectory(nodes)
46
47 if(WITH_CYCLES_OSL)
48         target_link_libraries(cycles_kernel_osl ${OSL_LIBRARIES})
49 endif()