2011-04-27 11:58:34 +00:00
|
|
|
|
2011-11-08 20:27:37 +00:00
|
|
|
set(INC
|
2011-04-28 13:47:27 +00:00
|
|
|
.
|
|
|
|
../device
|
|
|
|
../kernel
|
|
|
|
../kernel/svm
|
|
|
|
../bvh
|
|
|
|
../util
|
|
|
|
../render
|
2011-11-08 20:27:37 +00:00
|
|
|
../subd
|
|
|
|
)
|
2012-09-20 09:04:43 +00:00
|
|
|
set(INC_SYS
|
|
|
|
)
|
2011-04-27 11:58:34 +00:00
|
|
|
|
2011-08-16 16:15:34 +00:00
|
|
|
set(LIBRARIES
|
2011-04-28 13:47:27 +00:00
|
|
|
cycles_device
|
|
|
|
cycles_kernel
|
|
|
|
cycles_render
|
|
|
|
cycles_bvh
|
|
|
|
cycles_subd
|
|
|
|
cycles_util
|
2011-08-16 16:15:34 +00:00
|
|
|
${BOOST_LIBRARIES}
|
2013-08-31 02:25:43 +00:00
|
|
|
${OPENEXR_LIBRARIES}
|
2011-04-27 11:58:34 +00:00
|
|
|
${OPENGL_LIBRARIES}
|
2011-05-27 12:13:10 +00:00
|
|
|
${CYCLES_GLEW_LIBRARY}
|
2011-11-08 20:27:37 +00:00
|
|
|
${OPENIMAGEIO_LIBRARIES}
|
2013-08-31 02:56:03 +00:00
|
|
|
${PNG_LIBRARIES}
|
|
|
|
${JPEG_LIBRARIES}
|
|
|
|
${ZLIB_LIBRARIES}
|
|
|
|
${TIFF_LIBRARY}
|
2011-11-08 20:27:37 +00:00
|
|
|
)
|
2011-05-01 10:00:21 +00:00
|
|
|
|
2013-08-31 02:25:43 +00:00
|
|
|
if(WIN32)
|
|
|
|
list(APPEND LIBRARIES ${PTHREADS_LIBRARIES})
|
|
|
|
endif()
|
|
|
|
|
2013-08-31 02:56:03 +00:00
|
|
|
link_directories(${OPENIMAGEIO_LIBPATH} ${BOOST_LIBPATH} ${PNG_LIBPATH} ${JPEG_LIBPATH} ${ZLIB_LIBPATH} ${TIFF_LIBPATH})
|
2011-08-16 16:15:34 +00:00
|
|
|
|
2013-08-30 17:34:27 +00:00
|
|
|
if(WITH_CYCLES_STANDALONE AND WITH_CYCLES_STANDALONE_GUI)
|
2011-08-16 16:15:34 +00:00
|
|
|
list(APPEND LIBRARIES ${GLUT_LIBRARIES})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(WITH_CYCLES_OSL)
|
2013-11-27 23:13:32 +00:00
|
|
|
list(APPEND LIBRARIES cycles_kernel_osl ${OSL_LIBRARIES} ${LLVM_LIBRARY})
|
2011-08-16 16:15:34 +00:00
|
|
|
endif()
|
|
|
|
|
2011-11-08 20:27:37 +00:00
|
|
|
include_directories(${INC})
|
2012-09-20 09:04:43 +00:00
|
|
|
include_directories(SYSTEM ${INC_SYS})
|
2011-11-08 20:27:37 +00:00
|
|
|
|
2013-08-27 02:37:48 +00:00
|
|
|
if(WITH_CYCLES_STANDALONE)
|
2011-11-08 20:27:37 +00:00
|
|
|
set(SRC
|
2013-08-27 02:37:48 +00:00
|
|
|
cycles_standalone.cpp
|
2011-11-08 20:27:37 +00:00
|
|
|
cycles_xml.cpp
|
|
|
|
cycles_xml.h
|
|
|
|
)
|
2013-08-27 02:37:48 +00:00
|
|
|
add_executable(cycles ${SRC})
|
2014-01-25 13:19:32 +00:00
|
|
|
list(APPEND LIBRARIES ${PLATFORM_LINKLIBS})
|
2013-08-30 20:26:57 +00:00
|
|
|
target_link_libraries(cycles ${LIBRARIES} ${CMAKE_DL_LIBS})
|
2011-08-16 16:15:34 +00:00
|
|
|
|
|
|
|
if(UNIX AND NOT APPLE)
|
2013-08-27 02:37:48 +00:00
|
|
|
set_target_properties(cycles PROPERTIES INSTALL_RPATH $ORIGIN/lib)
|
2011-08-16 16:15:34 +00:00
|
|
|
endif()
|
2011-11-08 20:27:37 +00:00
|
|
|
unset(SRC)
|
2011-08-16 16:15:34 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(WITH_CYCLES_NETWORK)
|
2011-11-08 20:27:37 +00:00
|
|
|
set(SRC
|
|
|
|
cycles_server.cpp
|
|
|
|
)
|
|
|
|
add_executable(cycles_server ${SRC})
|
2014-02-03 19:19:15 +00:00
|
|
|
target_link_libraries(cycles_server ${LIBRARIES} ${CMAKE_DL_LIBS})
|
2011-08-16 16:15:34 +00:00
|
|
|
|
|
|
|
if(UNIX AND NOT APPLE)
|
|
|
|
set_target_properties(cycles_server PROPERTIES INSTALL_RPATH $ORIGIN/lib)
|
|
|
|
endif()
|
2011-11-08 20:27:37 +00:00
|
|
|
unset(SRC)
|
2011-08-16 16:15:34 +00:00
|
|
|
endif()
|
2011-04-27 11:58:34 +00:00
|
|
|
|