ce82d901c44bbeb923dcf2828fb897a0ff46a44a
[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_microfacet.cpp
17         bsdf_reflection.cpp
18         bsdf_refraction.cpp
19         bsdf_transparent.cpp
20         bsdf_ward.cpp
21         bsdf_westin.cpp
22         bssrdf.cpp
23         debug.cpp
24         emissive.cpp
25         osl_closures.cpp
26         osl_services.cpp
27         osl_shader.cpp
28         vol_subsurface.cpp
29 )
30
31 set(HEADER_SRC
32         osl_closures.h
33         osl_globals.h
34         osl_services.h
35         osl_shader.h
36 )
37
38 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${RTTI_DISABLE_FLAGS}")
39
40 include_directories(${INC})
41
42 add_library(cycles_kernel_osl ${SRC} ${HEADER_SRC})
43
44 add_subdirectory(nodes)
45
46 if(WITH_CYCLES_OSL)
47         target_link_libraries(cycles_kernel_osl ${OSL_LIBRARIES})
48 endif()