Cycles: svn merge -r41225:41232 ^/trunk/blender
[blender.git] / intern / cycles / app / CMakeLists.txt
1
2 include_directories(
3         .
4         ../device
5         ../kernel
6         ../kernel/svm
7         ../bvh
8         ../util
9         ../render
10         ../subd)
11
12 set(LIBRARIES
13         cycles_device
14         cycles_kernel
15         cycles_render
16         cycles_bvh
17         cycles_subd
18         cycles_util
19         ${BOOST_LIBRARIES}
20         ${OPENGL_LIBRARIES}
21         ${CYCLES_GLEW_LIBRARY}
22         ${OPENIMAGEIO_LIBRARIES})
23
24 link_directories(${OPENIMAGEIO_LIBPATH} ${BOOST_LIBPATH})
25
26 if(WITH_CYCLES_TEST)
27         list(APPEND LIBRARIES ${GLUT_LIBRARIES})
28 endif()
29
30 if(WITH_CYCLES_OSL)
31         list(APPEND LIBRARIES cycles_kernel_osl ${OSL_LIBRARIES})
32 endif()
33
34 if(WITH_CYCLES_PARTIO)
35         list(APPEND LIBRARIES ${PARTIO_LIBRARIES})
36 endif()
37
38 if(WITH_CYCLES_TEST)
39         add_executable(cycles_test cycles_test.cpp cycles_xml.cpp cycles_xml.h)
40         target_link_libraries(cycles_test ${LIBRARIES})
41
42         if(UNIX AND NOT APPLE)
43                 set_target_properties(cycles_test PROPERTIES INSTALL_RPATH $ORIGIN/lib)
44         endif()
45 endif()
46
47 if(WITH_CYCLES_NETWORK)
48         add_executable(cycles_server cycles_server.cpp)
49         target_link_libraries(cycles_server ${LIBRARIES})
50
51         if(UNIX AND NOT APPLE)
52                 set_target_properties(cycles_server PROPERTIES INSTALL_RPATH $ORIGIN/lib)
53         endif()
54 endif()
55