Cycles / Standalone:

* Rename test to standalone.

Note: New CMAKE flag is WITH_CYCLES_STANDALONE.
This commit is contained in:
Thomas Dinges
2013-08-27 02:37:48 +00:00
parent defb8812a7
commit ff4e018753
6 changed files with 12 additions and 12 deletions

View File

@@ -261,7 +261,7 @@ mark_as_advanced(PYTHON_NUMPY_PATH)
# Cycles
option(WITH_CYCLES "Enable cycles Render Engine" ON)
option(WITH_CYCLES_TEST "Build cycles test application" OFF)
option(WITH_CYCLES_STANDALONE "Build cycles standalone application" OFF)
option(WITH_CYCLES_OSL "Build Cycles with OSL support" OFF)
option(WITH_CYCLES_CUDA_BINARIES "Build cycles CUDA binaries" OFF)
set(CYCLES_CUDA_BINARIES_ARCH sm_20 sm_21 sm_30 sm_35 CACHE STRING "CUDA architectures to build binaries for")
@@ -373,7 +373,7 @@ endif()
#-----------------------------------------------------------------------------
# Check for conflicting/unsupported configurations
if(NOT WITH_BLENDER AND NOT WITH_PLAYER AND NOT WITH_CYCLES_TEST)
if(NOT WITH_BLENDER AND NOT WITH_PLAYER AND NOT WITH_CYCLES_STANDALONE)
message(FATAL_ERROR "At least one of WITH_BLENDER or WITH_PLAYER must be enabled, nothing to do!")
endif()

View File

@@ -76,7 +76,7 @@ if(WITH_CYCLES_BLENDER)
add_subdirectory(blender)
endif()
if(WITH_CYCLES_TEST OR WITH_CYCLES_NETWORK)
if(WITH_CYCLES_STANDALONE OR WITH_CYCLES_NETWORK)
add_subdirectory(app)
endif()

View File

@@ -27,7 +27,7 @@ set(LIBRARIES
link_directories(${OPENIMAGEIO_LIBPATH} ${BOOST_LIBPATH})
if(WITH_CYCLES_TEST)
if(WITH_CYCLES_STANDALONE)
list(APPEND LIBRARIES ${GLUT_LIBRARIES})
endif()
@@ -38,17 +38,17 @@ endif()
include_directories(${INC})
include_directories(SYSTEM ${INC_SYS})
if(WITH_CYCLES_TEST)
if(WITH_CYCLES_STANDALONE)
set(SRC
cycles_test.cpp
cycles_standalone.cpp
cycles_xml.cpp
cycles_xml.h
)
add_executable(cycles_test ${SRC})
target_link_libraries(cycles_test ${LIBRARIES})
add_executable(cycles ${SRC})
target_link_libraries(cycles ${LIBRARIES})
if(UNIX AND NOT APPLE)
set_target_properties(cycles_test PROPERTIES INSTALL_RPATH $ORIGIN/lib)
set_target_properties(cycles PROPERTIES INSTALL_RPATH $ORIGIN/lib)
endif()
unset(SRC)
endif()

View File

@@ -229,7 +229,7 @@ static void options_parse(int argc, const char **argv)
ArgParse ap;
bool help = false;
ap.options ("Usage: cycles_test [options] file.xml",
ap.options ("Usage: cycles [options] file.xml",
"%*", files_parse, "",
"--device %s", &devicename, ("Devices to use: " + device_names).c_str(),
"--shadingsys %s", &ssname, "Shading system to use: svm, osl",

View File

@@ -2,7 +2,7 @@
###########################################################################
# GLUT
if(WITH_CYCLES_TEST)
if(WITH_CYCLES_STANDALONE)
set(GLUT_ROOT_PATH ${CYCLES_GLUT})
find_package(GLUT)

View File

@@ -22,7 +22,7 @@ set(SRC
util_transform.cpp
)
if(WITH_CYCLES_TEST)
if(WITH_CYCLES_STANDALONE)
list(APPEND SRC
util_view.cpp
)