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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-04-28 17:47:27 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-04-28 17:47:27 +0400
commit774584d7e84843503a5ef4477748cecfdaedeb3d (patch)
tree574506474a87223ccfa709113f9048f626071fb1 /intern/cycles/app
parentd263fee9521c2a53f7b673c9a8c57c072bf072c1 (diff)
Cycles: hook up the CMake build system.
New build instructions for Ubuntu Linux in the wiki: http://wiki.blender.org/index.php/Dev:2.5/Source/Cycles
Diffstat (limited to 'intern/cycles/app')
-rw-r--r--intern/cycles/app/CMakeLists.txt46
-rw-r--r--intern/cycles/app/cycles_test.cpp2
2 files changed, 27 insertions, 21 deletions
diff --git a/intern/cycles/app/CMakeLists.txt b/intern/cycles/app/CMakeLists.txt
index b1f73ed74a3..d90ebf0a8b5 100644
--- a/intern/cycles/app/CMakeLists.txt
+++ b/intern/cycles/app/CMakeLists.txt
@@ -1,48 +1,54 @@
-INCLUDE_DIRECTORIES(. ../device ../kernel ../kernel/svm ../bvh ../util ../render ../subd)
+INCLUDE_DIRECTORIES(
+ .
+ ../device
+ ../kernel
+ ../kernel/svm
+ ../bvh
+ ../util
+ ../render
+ ../subd)
SET(LIBRARIES
- device
- kernel
- render
- bvh
- subd
- util
+ cycles_device
+ cycles_kernel
+ cycles_render
+ cycles_bvh
+ cycles_subd
+ cycles_util
${Boost_LIBRARIES}
${OPENGL_LIBRARIES}
- ${GLEW_LIBRARIES}
+ ${GLEW_LIBRARY}
${OPENIMAGEIO_LIBRARY}
${GLUT_LIBRARIES})
-IF(WITH_OSL)
- LIST(APPEND LIBRARIES kernel_osl ${OSL_LIBRARIES})
-ENDIF(WITH_OSL)
+IF(WITH_CYCLES_OSL)
+ LIST(APPEND LIBRARIES cycles_kernel_osl ${OSL_LIBRARIES})
+ENDIF()
-IF(WITH_PARTIO)
+IF(WITH_CYCLES_PARTIO)
LIST(APPEND LIBRARIES ${PARTIO_LIBRARIES})
-ENDIF(WITH_PARTIO)
+ENDIF()
-IF(WITH_OPENCL)
+IF(WITH_CYCLES_OPENCL)
LIST(APPEND LIBRARIES ${OPENCL_LIBRARIES})
-ENDIF(WITH_OPENCL)
+ENDIF()
ADD_EXECUTABLE(cycles_test cycles_test.cpp cycles_xml.cpp cycles_xml.h)
TARGET_LINK_LIBRARIES(cycles_test ${LIBRARIES})
-INSTALL(TARGETS cycles_test DESTINATION ${INSTALL_PATH}/cycles)
+INSTALL(TARGETS cycles_test DESTINATION ${CYCLES_INSTALL_PATH}/cycles)
IF(UNIX AND NOT APPLE)
SET_TARGET_PROPERTIES(cycles_test PROPERTIES INSTALL_RPATH $ORIGIN/lib)
ENDIF()
-IF(WITH_NETWORK)
+IF(WITH_CYCLES_NETWORK)
ADD_EXECUTABLE(cycles_server cycles_server.cpp)
TARGET_LINK_LIBRARIES(cycles_server ${LIBRARIES})
- INSTALL(TARGETS cycles_server DESTINATION ${INSTALL_PATH}/cycles)
+ INSTALL(TARGETS cycles_server DESTINATION ${CYCLES_INSTALL_PATH}/cycles)
IF(UNIX AND NOT APPLE)
SET_TARGET_PROPERTIES(cycles_server PROPERTIES INSTALL_RPATH $ORIGIN/lib)
ENDIF()
ENDIF()
-INSTALL(CODE "FILE(MAKE_DIRECTORY ${INSTALL_PATH}/cycles/cache)")
-
diff --git a/intern/cycles/app/cycles_test.cpp b/intern/cycles/app/cycles_test.cpp
index 96072ac3da6..2603458f088 100644
--- a/intern/cycles/app/cycles_test.cpp
+++ b/intern/cycles/app/cycles_test.cpp
@@ -185,7 +185,7 @@ static void options_parse(int argc, const char **argv)
{
options.width= 1024;
options.height= 512;
- options.filepath = path_get("../../../test/models/elephants.xml");
+ options.filepath = "";
options.session = NULL;
options.quiet = false;