Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/cycles/app/CMakeLists.txt')
-rw-r--r--intern/cycles/app/CMakeLists.txt69
1 files changed, 69 insertions, 0 deletions
diff --git a/intern/cycles/app/CMakeLists.txt b/intern/cycles/app/CMakeLists.txt
new file mode 100644
index 00000000000..2e2897d0443
--- /dev/null
+++ b/intern/cycles/app/CMakeLists.txt
@@ -0,0 +1,69 @@
+
+set(INC
+ .
+ ../device
+ ../kernel
+ ../kernel/svm
+ ../bvh
+ ../util
+ ../render
+ ../subd
+)
+
+set(LIBRARIES
+ cycles_device
+ cycles_kernel
+ cycles_render
+ cycles_bvh
+ cycles_subd
+ cycles_util
+ ${BOOST_LIBRARIES}
+ ${OPENGL_LIBRARIES}
+ ${CYCLES_GLEW_LIBRARY}
+ ${OPENIMAGEIO_LIBRARIES}
+)
+
+link_directories(${OPENIMAGEIO_LIBPATH} ${BOOST_LIBPATH})
+
+if(WITH_CYCLES_TEST)
+ list(APPEND LIBRARIES ${GLUT_LIBRARIES})
+endif()
+
+if(WITH_CYCLES_OSL)
+ list(APPEND LIBRARIES cycles_kernel_osl ${OSL_LIBRARIES})
+endif()
+
+if(WITH_CYCLES_PARTIO)
+ list(APPEND LIBRARIES ${PARTIO_LIBRARIES})
+endif()
+
+include_directories(${INC})
+
+if(WITH_CYCLES_TEST)
+ set(SRC
+ cycles_test.cpp
+ cycles_xml.cpp
+ cycles_xml.h
+ )
+ add_executable(cycles_test ${SRC})
+ target_link_libraries(cycles_test ${LIBRARIES})
+
+ if(UNIX AND NOT APPLE)
+ set_target_properties(cycles_test PROPERTIES INSTALL_RPATH $ORIGIN/lib)
+ endif()
+ unset(SRC)
+endif()
+
+if(WITH_CYCLES_NETWORK)
+ set(SRC
+ cycles_server.cpp
+ )
+ add_executable(cycles_server ${SRC})
+ target_link_libraries(cycles_server ${LIBRARIES})
+
+ if(UNIX AND NOT APPLE)
+ set_target_properties(cycles_server PROPERTIES INSTALL_RPATH $ORIGIN/lib)
+ endif()
+ unset(SRC)
+endif()
+