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:
authorCampbell Barton <ideasman42@gmail.com>2011-11-09 00:27:37 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-11-09 00:27:37 +0400
commit33814e0093f0d8d5d8dca46dfc3a13a39a256227 (patch)
tree4bc801ca44b0c1d8aa75d829e3482c7eabd7b018 /intern/cycles/app
parent76f77514d3ffbb9697154bb5d12a1bee1b57b607 (diff)
edits to cycles cmake files so cmake_consistency_check.py can parse them.
Diffstat (limited to 'intern/cycles/app')
-rw-r--r--intern/cycles/app/CMakeLists.txt24
1 files changed, 19 insertions, 5 deletions
diff --git a/intern/cycles/app/CMakeLists.txt b/intern/cycles/app/CMakeLists.txt
index ef6a80fbe5d..2e2897d0443 100644
--- a/intern/cycles/app/CMakeLists.txt
+++ b/intern/cycles/app/CMakeLists.txt
@@ -1,5 +1,5 @@
-include_directories(
+set(INC
.
../device
../kernel
@@ -7,7 +7,8 @@ include_directories(
../bvh
../util
../render
- ../subd)
+ ../subd
+)
set(LIBRARIES
cycles_device
@@ -19,7 +20,8 @@ set(LIBRARIES
${BOOST_LIBRARIES}
${OPENGL_LIBRARIES}
${CYCLES_GLEW_LIBRARY}
- ${OPENIMAGEIO_LIBRARIES})
+ ${OPENIMAGEIO_LIBRARIES}
+)
link_directories(${OPENIMAGEIO_LIBPATH} ${BOOST_LIBPATH})
@@ -35,21 +37,33 @@ if(WITH_CYCLES_PARTIO)
list(APPEND LIBRARIES ${PARTIO_LIBRARIES})
endif()
+include_directories(${INC})
+
if(WITH_CYCLES_TEST)
- add_executable(cycles_test cycles_test.cpp cycles_xml.cpp cycles_xml.h)
+ 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)
- add_executable(cycles_server cycles_server.cpp)
+ 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()