add BLI_strcpy_rlen, replace strcat, which was used in misleading way.
[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         ${OPENGL_LIBRARIES}
24         ${CYCLES_GLEW_LIBRARY}
25         ${OPENIMAGEIO_LIBRARIES}
26 )
27
28 link_directories(${OPENIMAGEIO_LIBPATH} ${BOOST_LIBPATH})
29
30 if(WITH_CYCLES_TEST)
31         list(APPEND LIBRARIES ${GLUT_LIBRARIES})
32 endif()
33
34 if(WITH_CYCLES_OSL)
35         list(APPEND LIBRARIES cycles_kernel_osl ${OSL_LIBRARIES})
36 endif()
37
38 include_directories(${INC})
39 include_directories(SYSTEM ${INC_SYS})
40
41 if(WITH_CYCLES_TEST)
42         set(SRC
43                 cycles_test.cpp
44                 cycles_xml.cpp
45                 cycles_xml.h
46         )
47         add_executable(cycles_test ${SRC})
48         target_link_libraries(cycles_test ${LIBRARIES})
49
50         if(UNIX AND NOT APPLE)
51                 set_target_properties(cycles_test PROPERTIES INSTALL_RPATH $ORIGIN/lib)
52         endif()
53         unset(SRC)
54 endif()
55
56 if(WITH_CYCLES_NETWORK)
57         set(SRC
58                 cycles_server.cpp
59         )
60         add_executable(cycles_server ${SRC})
61         target_link_libraries(cycles_server ${LIBRARIES})
62
63         if(UNIX AND NOT APPLE)
64                 set_target_properties(cycles_server PROPERTIES INSTALL_RPATH $ORIGIN/lib)
65         endif()
66         unset(SRC)
67 endif()
68