Cuda use streams and async to avoid busywaiting
[blender.git] / intern / cycles / app / CMakeLists.txt
1
2 set(INC
3         .
4         ../device
5         ../kernel
6         ../kernel/svm
7         ../bvh
8         ../util
9         ../render
10         ../subd
11 )
12 set(INC_SYS
13 )
14
15 set(LIBRARIES
16         cycles_device
17         cycles_kernel
18         cycles_render
19         cycles_bvh
20         cycles_subd
21         cycles_util
22         ${BOOST_LIBRARIES}
23         ${OPENEXR_LIBRARIES}
24         ${OPENGL_LIBRARIES}
25         ${CYCLES_GLEW_LIBRARY}
26         ${OPENIMAGEIO_LIBRARIES}
27         ${PNG_LIBRARIES}
28         ${JPEG_LIBRARIES}
29         ${ZLIB_LIBRARIES}
30         ${TIFF_LIBRARY}
31 )
32
33 if(WIN32)
34         list(APPEND LIBRARIES ${PTHREADS_LIBRARIES})
35 endif()
36
37 link_directories(${OPENIMAGEIO_LIBPATH} ${BOOST_LIBPATH} ${PNG_LIBPATH} ${JPEG_LIBPATH} ${ZLIB_LIBPATH} ${TIFF_LIBPATH})
38
39 if(WITH_CYCLES_STANDALONE AND WITH_CYCLES_STANDALONE_GUI)
40         list(APPEND LIBRARIES ${GLUT_LIBRARIES})
41 endif()
42
43 if(WITH_CYCLES_OSL)
44         list(APPEND LIBRARIES cycles_kernel_osl ${OSL_LIBRARIES} ${LLVM_LIBRARY})
45 endif()
46
47 include_directories(${INC})
48 include_directories(SYSTEM ${INC_SYS})
49
50 if(WITH_CYCLES_STANDALONE)
51         set(SRC
52                 cycles_standalone.cpp
53                 cycles_xml.cpp
54                 cycles_xml.h
55         )
56         add_executable(cycles ${SRC})
57         list(APPEND LIBRARIES ${PLATFORM_LINKLIBS})
58         target_link_libraries(cycles ${LIBRARIES} ${CMAKE_DL_LIBS})
59
60         if(UNIX AND NOT APPLE)
61                 set_target_properties(cycles PROPERTIES INSTALL_RPATH $ORIGIN/lib)
62         endif()
63         unset(SRC)
64 endif()
65
66 if(WITH_CYCLES_NETWORK)
67         set(SRC
68                 cycles_server.cpp
69         )
70         add_executable(cycles_server ${SRC})
71         target_link_libraries(cycles_server ${LIBRARIES} ${CMAKE_DL_LIBS})
72
73         if(UNIX AND NOT APPLE)
74                 set_target_properties(cycles_server PROPERTIES INSTALL_RPATH $ORIGIN/lib)
75         endif()
76         unset(SRC)
77 endif()
78