Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
| Show First 20 Lines • Show All 215 Lines • ▼ Show 20 Lines | |||||
| option(WITH_FFTW3 "Enable FFTW3 support (Used for smoke and audio effects)" ${_init_FFTW3}) | option(WITH_FFTW3 "Enable FFTW3 support (Used for smoke and audio effects)" ${_init_FFTW3}) | ||||
| option(WITH_BULLET "Enable Bullet (Physics Engine)" ON) | option(WITH_BULLET "Enable Bullet (Physics Engine)" ON) | ||||
| option(WITH_SYSTEM_BULLET "Use the systems bullet library (currently unsupported due to missing features in upstream!)" ) | option(WITH_SYSTEM_BULLET "Use the systems bullet library (currently unsupported due to missing features in upstream!)" ) | ||||
| mark_as_advanced(WITH_SYSTEM_BULLET) | mark_as_advanced(WITH_SYSTEM_BULLET) | ||||
| option(WITH_GAMEENGINE "Enable Game Engine" ${_init_GAMEENGINE}) | option(WITH_GAMEENGINE "Enable Game Engine" ${_init_GAMEENGINE}) | ||||
| option(WITH_PLAYER "Build Player" OFF) | option(WITH_PLAYER "Build Player" OFF) | ||||
| option(WITH_OPENCOLORIO "Enable OpenColorIO color management" ${_init_OPENCOLORIO}) | option(WITH_OPENCOLORIO "Enable OpenColorIO color management" ${_init_OPENCOLORIO}) | ||||
| option(WITH_COMPOSITOR "Enable the tile based nodal compositor" ON) | option(WITH_COMPOSITOR "Enable the tile based nodal compositor" ON) | ||||
| option(WITH_OPENVDB "Enable features relying on OpenVDB" ON) | |||||
| # GHOST Windowing Library Options | # GHOST Windowing Library Options | ||||
| option(WITH_GHOST_DEBUG "Enable debugging output for the GHOST library" OFF) | option(WITH_GHOST_DEBUG "Enable debugging output for the GHOST library" OFF) | ||||
| mark_as_advanced(WITH_GHOST_DEBUG) | mark_as_advanced(WITH_GHOST_DEBUG) | ||||
| option(WITH_GHOST_SDL "Enable building blender against SDL for windowing rather then the native APIs" OFF) | option(WITH_GHOST_SDL "Enable building blender against SDL for windowing rather then the native APIs" OFF) | ||||
| mark_as_advanced(WITH_GHOST_SDL) | mark_as_advanced(WITH_GHOST_SDL) | ||||
| Show All 32 Lines | |||||
| # Modifiers | # Modifiers | ||||
| option(WITH_MOD_FLUID "Enable Elbeem Modifier (Fluid Simulation)" ON) | option(WITH_MOD_FLUID "Enable Elbeem Modifier (Fluid Simulation)" ON) | ||||
| option(WITH_MOD_SMOKE "Enable Smoke Modifier (Smoke Simulation)" ON) | option(WITH_MOD_SMOKE "Enable Smoke Modifier (Smoke Simulation)" ON) | ||||
| option(WITH_MOD_BOOLEAN "Enable Boolean Modifier" ON) | option(WITH_MOD_BOOLEAN "Enable Boolean Modifier" ON) | ||||
| option(WITH_MOD_REMESH "Enable Remesh Modifier" ON) | option(WITH_MOD_REMESH "Enable Remesh Modifier" ON) | ||||
| # option(WITH_MOD_CLOTH_ELTOPO "Enable Experimental cloth solver" OFF) # this is now only available in a branch | # option(WITH_MOD_CLOTH_ELTOPO "Enable Experimental cloth solver" OFF) # this is now only available in a branch | ||||
| # mark_as_advanced(WITH_MOD_CLOTH_ELTOPO) | # mark_as_advanced(WITH_MOD_CLOTH_ELTOPO) | ||||
| option(WITH_MOD_OCEANSIM "Enable Ocean Modifier" OFF) | option(WITH_MOD_OCEANSIM "Enable Ocean Modifier" OFF) | ||||
| option(WITH_MOD_PARTMESHER "Enable Particle Mesher Modifier" OFF) | |||||
| # Image format support | # Image format support | ||||
| option(WITH_OPENIMAGEIO "Enable OpenImageIO Support (http://www.openimageio.org)" ON) | option(WITH_OPENIMAGEIO "Enable OpenImageIO Support (http://www.openimageio.org)" ON) | ||||
| option(WITH_IMAGE_OPENEXR "Enable OpenEXR Support (http://www.openexr.com)" ${_init_IMAGE_OPENEXR}) | option(WITH_IMAGE_OPENEXR "Enable OpenEXR Support (http://www.openexr.com)" ${_init_IMAGE_OPENEXR}) | ||||
| option(WITH_IMAGE_OPENJPEG "Enable OpenJpeg Support (http://www.openjpeg.org)" ON) | option(WITH_IMAGE_OPENJPEG "Enable OpenJpeg Support (http://www.openjpeg.org)" ON) | ||||
| option(WITH_IMAGE_TIFF "Enable LibTIFF Support" ON) | option(WITH_IMAGE_TIFF "Enable LibTIFF Support" ON) | ||||
| option(WITH_IMAGE_DDS "Enable DDS Image Support" ON) | option(WITH_IMAGE_DDS "Enable DDS Image Support" ON) | ||||
| option(WITH_IMAGE_CINEON "Enable CINEON and DPX Image Support" ON) | option(WITH_IMAGE_CINEON "Enable CINEON and DPX Image Support" ON) | ||||
| ▲ Show 20 Lines • Show All 349 Lines • ▼ Show 20 Lines | if(NOT WITH_BOOST) | ||||
| set_and_warn(WITH_GAMEENGINE OFF) # depends on AUDASPACE | set_and_warn(WITH_GAMEENGINE OFF) # depends on AUDASPACE | ||||
| elseif(WITH_CYCLES OR WITH_OPENIMAGEIO OR WITH_AUDASPACE OR WITH_INTERNATIONAL) | elseif(WITH_CYCLES OR WITH_OPENIMAGEIO OR WITH_AUDASPACE OR WITH_INTERNATIONAL) | ||||
| # Keep enabled | # Keep enabled | ||||
| else() | else() | ||||
| # Enabled but we don't need it | # Enabled but we don't need it | ||||
| set(WITH_BOOST OFF) | set(WITH_BOOST OFF) | ||||
| endif() | endif() | ||||
| if(NOT WITH_OPENVDB) | |||||
| # Explicitly disabled. so disable all deps. | |||||
| macro(set_and_warn | |||||
| _setting _val) | |||||
| if(${${_setting}}) | |||||
| message(STATUS "'WITH_OPENVDB' is disabled: forceing 'set(${_setting} ${_val})'") | |||||
| endif() | |||||
| set(${_setting} ${_val}) | |||||
| endmacro() | |||||
| set_and_warn(WITH_MOD_PARTMESHER OFF) | |||||
| endif() | |||||
| # auto enable openimageio for cycles | # auto enable openimageio for cycles | ||||
| if(WITH_CYCLES) | if(WITH_CYCLES) | ||||
| set(WITH_OPENIMAGEIO ON) | set(WITH_OPENIMAGEIO ON) | ||||
| endif() | endif() | ||||
| # auto enable openimageio linking dependencies | # auto enable openimageio linking dependencies | ||||
| if(WITH_OPENIMAGEIO) | if(WITH_OPENIMAGEIO) | ||||
| set(WITH_IMAGE_OPENEXR ON) | set(WITH_IMAGE_OPENEXR ON) | ||||
| ▲ Show 20 Lines • Show All 350 Lines • ▼ Show 20 Lines | if(WITH_OPENCOLORIO) | ||||
| set(OPENCOLORIO_DEFINITIONS) | set(OPENCOLORIO_DEFINITIONS) | ||||
| if(NOT OPENCOLORIO_FOUND) | if(NOT OPENCOLORIO_FOUND) | ||||
| set(WITH_OPENCOLORIO OFF) | set(WITH_OPENCOLORIO OFF) | ||||
| message(STATUS "OpenColorIO not found") | message(STATUS "OpenColorIO not found") | ||||
| endif() | endif() | ||||
| endif() | endif() | ||||
| if(WITH_OPENVDB) | |||||
| find_package_wrapper(OpenVDB) | |||||
| set(TBB ${LIBDIR}/tbb) | |||||
| set(TBB_LIBRARIES tbb) | |||||
| set(TBB_LIBPATH ${TBB}/lib) | |||||
| set(OPENVDB_LIBRARIES ${OPENVDB_LIBRARIES} ${BOOST_LIBRARIES} ${ZLIB_LIBRARIES} ${TBB_LIBRARIES}) | |||||
| set(OPENVDB_LIBPATH) # TODO, remove and reference the absolute path everywhere | |||||
| set(OPENVDB_DEFINITIONS) | |||||
| if(NOT OPENVDB_FOUND) | |||||
| set(WITH_OPENVDB OFF) | |||||
| message(STATUS "OpenVDB not found") | |||||
| endif() | |||||
| endif() | |||||
| # XXX Maybe most of this section should go into an llvm module? | # XXX Maybe most of this section should go into an llvm module? | ||||
| if(WITH_LLVM) | if(WITH_LLVM) | ||||
| # Set llvm version if not specified | # Set llvm version if not specified | ||||
| if(NOT LLVM_VERSION) | if(NOT LLVM_VERSION) | ||||
| set(LLVM_VERSION "3.0") | set(LLVM_VERSION "3.0") | ||||
| endif() | endif() | ||||
| if(LLVM_DIRECTORY) | if(LLVM_DIRECTORY) | ||||
| ▲ Show 20 Lines • Show All 465 Lines • ▼ Show 20 Lines | if(MSVC) | ||||
| if(WITH_OPENCOLORIO) | if(WITH_OPENCOLORIO) | ||||
| set(OPENCOLORIO ${LIBDIR}/opencolorio) | set(OPENCOLORIO ${LIBDIR}/opencolorio) | ||||
| set(OPENCOLORIO_INCLUDE_DIRS ${OPENCOLORIO}/include) | set(OPENCOLORIO_INCLUDE_DIRS ${OPENCOLORIO}/include) | ||||
| set(OPENCOLORIO_LIBRARIES OpenColorIO) | set(OPENCOLORIO_LIBRARIES OpenColorIO) | ||||
| set(OPENCOLORIO_LIBPATH ${LIBDIR}/opencolorio/lib) | set(OPENCOLORIO_LIBPATH ${LIBDIR}/opencolorio/lib) | ||||
| set(OPENCOLORIO_DEFINITIONS) | set(OPENCOLORIO_DEFINITIONS) | ||||
| endif() | endif() | ||||
| if(WITH_OPENVDB) | |||||
| set(OPENVDB ${LIBDIR}/openvdb) | |||||
| set(OPENVDB_INCLUDE_DIRS ${OPENVDB}/include) | |||||
| set(OPENVDB_LIBRARIES openvdb ${TBB_LIBRARIES}) | |||||
| set(OPENVDB_LIBPATH ${LIBDIR}/openvdb/lib) | |||||
| set(OPENVDB_DEFINITIONS) | |||||
| endif() | |||||
| if(WITH_MOD_CLOTH_ELTOPO) | if(WITH_MOD_CLOTH_ELTOPO) | ||||
| set(LAPACK ${LIBDIR}/lapack) | set(LAPACK ${LIBDIR}/lapack) | ||||
| # set(LAPACK_INCLUDE_DIR ${LAPACK}/include) | # set(LAPACK_INCLUDE_DIR ${LAPACK}/include) | ||||
| set(LAPACK_LIBPATH ${LAPACK}/lib) | set(LAPACK_LIBPATH ${LAPACK}/lib) | ||||
| set(LAPACK_LIBRARIES | set(LAPACK_LIBRARIES | ||||
| ${LIBDIR}/lapack/lib/libf2c.lib | ${LIBDIR}/lapack/lib/libf2c.lib | ||||
| ${LIBDIR}/lapack/lib/clapack_nowrap.lib | ${LIBDIR}/lapack/lib/clapack_nowrap.lib | ||||
| ▲ Show 20 Lines • Show All 225 Lines • ▼ Show 20 Lines | elseif(CMAKE_COMPILER_IS_GNUCC) | ||||
| if(WITH_OPENCOLORIO) | if(WITH_OPENCOLORIO) | ||||
| set(OPENCOLORIO ${LIBDIR}/opencolorio) | set(OPENCOLORIO ${LIBDIR}/opencolorio) | ||||
| set(OPENCOLORIO_INCLUDE_DIRS ${OPENCOLORIO}/include) | set(OPENCOLORIO_INCLUDE_DIRS ${OPENCOLORIO}/include) | ||||
| set(OPENCOLORIO_LIBRARIES OpenColorIO) | set(OPENCOLORIO_LIBRARIES OpenColorIO) | ||||
| set(OPENCOLORIO_LIBPATH ${OPENCOLORIO}/lib) | set(OPENCOLORIO_LIBPATH ${OPENCOLORIO}/lib) | ||||
| set(OPENCOLORIO_DEFINITIONS) | set(OPENCOLORIO_DEFINITIONS) | ||||
| endif() | endif() | ||||
| if(WITH_OPENVDB) | |||||
| set(OPENVDB ${LIBDIR}/openvdb) | |||||
| set(OPENVDB_INCLUDE_DIRS ${OPENVDB}/include) | |||||
| set(OPENVDB_LIBRARIES openvdb ${TBB_LIBRARIES}) | |||||
| set(OPENVDB_LIBPATH ${LIBDIR}/openvdb/lib) | |||||
| set(OPENVDB_DEFINITIONS) | |||||
| endif() | |||||
| set(PLATFORM_LINKFLAGS "-Xlinker --stack=2097152") | set(PLATFORM_LINKFLAGS "-Xlinker --stack=2097152") | ||||
| ## DISABLE - causes linking errors | ## DISABLE - causes linking errors | ||||
| ## for re-distribution, so users dont need mingw installed | ## for re-distribution, so users dont need mingw installed | ||||
| # set(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -static-libgcc -static-libstdc++") | # set(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -static-libgcc -static-libstdc++") | ||||
| endif() | endif() | ||||
| ▲ Show 20 Lines • Show All 285 Lines • ▼ Show 20 Lines | elseif(APPLE) | ||||
| if(WITH_OPENCOLORIO) | if(WITH_OPENCOLORIO) | ||||
| set(OPENCOLORIO ${LIBDIR}/opencolorio) | set(OPENCOLORIO ${LIBDIR}/opencolorio) | ||||
| set(OPENCOLORIO_INCLUDE_DIRS ${OPENCOLORIO}/include) | set(OPENCOLORIO_INCLUDE_DIRS ${OPENCOLORIO}/include) | ||||
| set(OPENCOLORIO_LIBRARIES OpenColorIO tinyxml yaml-cpp) | set(OPENCOLORIO_LIBRARIES OpenColorIO tinyxml yaml-cpp) | ||||
| set(OPENCOLORIO_LIBPATH ${OPENCOLORIO}/lib) | set(OPENCOLORIO_LIBPATH ${OPENCOLORIO}/lib) | ||||
| endif() | endif() | ||||
| if(WITH_OPENVDB) | |||||
| set(OPENVDB ${LIBDIR}/openvdb) | |||||
| set(OPENVDB_INCLUDE_DIRS ${OPENVDB}/include) | |||||
| set(OPENVDB_LIBRARIES openvdb ${TBB_LIBRARIES}) | |||||
| set(OPENVDB_LIBPATH ${LIBDIR}/openvdb/lib) | |||||
| set(OPENVDB_DEFINITIONS) | |||||
| endif() | |||||
| if(WITH_LLVM) | if(WITH_LLVM) | ||||
| set(LLVM_DIRECTORY ${LIBDIR}/llvm CACHE PATH "Path to the LLVM installation") | set(LLVM_DIRECTORY ${LIBDIR}/llvm CACHE PATH "Path to the LLVM installation") | ||||
| set(LLVM_VERSION "3.4" CACHE STRING "Version of LLVM to use") | set(LLVM_VERSION "3.4" CACHE STRING "Version of LLVM to use") | ||||
| if(EXISTS "${LLVM_DIRECTORY}/bin/llvm-config") | if(EXISTS "${LLVM_DIRECTORY}/bin/llvm-config") | ||||
| set(LLVM_CONFIG "${LLVM_DIRECTORY}/bin/llvm-config") | set(LLVM_CONFIG "${LLVM_DIRECTORY}/bin/llvm-config") | ||||
| else() | else() | ||||
| set(LLVM_CONFIG llvm-config) | set(LLVM_CONFIG llvm-config) | ||||
| endif() | endif() | ||||
| ▲ Show 20 Lines • Show All 718 Lines • ▼ Show 20 Lines | if(FIRST_RUN) | ||||
| info_cfg_option(WITH_IK_ITASC) | info_cfg_option(WITH_IK_ITASC) | ||||
| info_cfg_option(WITH_OPENCOLLADA) | info_cfg_option(WITH_OPENCOLLADA) | ||||
| info_cfg_option(WITH_FFTW3) | info_cfg_option(WITH_FFTW3) | ||||
| info_cfg_option(WITH_INTERNATIONAL) | info_cfg_option(WITH_INTERNATIONAL) | ||||
| info_cfg_option(WITH_INPUT_NDOF) | info_cfg_option(WITH_INPUT_NDOF) | ||||
| info_cfg_option(WITH_CYCLES) | info_cfg_option(WITH_CYCLES) | ||||
| info_cfg_option(WITH_FREESTYLE) | info_cfg_option(WITH_FREESTYLE) | ||||
| info_cfg_option(WITH_OPENCOLORIO) | info_cfg_option(WITH_OPENCOLORIO) | ||||
| info_cfg_option(WITH_OPENVDB) | |||||
| info_cfg_text("Compiler Options:") | info_cfg_text("Compiler Options:") | ||||
| info_cfg_option(WITH_BUILDINFO) | info_cfg_option(WITH_BUILDINFO) | ||||
| info_cfg_option(WITH_OPENMP) | info_cfg_option(WITH_OPENMP) | ||||
| info_cfg_option(WITH_RAYOPTIMIZATION) | info_cfg_option(WITH_RAYOPTIMIZATION) | ||||
| info_cfg_text("System Options:") | info_cfg_text("System Options:") | ||||
| info_cfg_option(WITH_INSTALL_PORTABLE) | info_cfg_option(WITH_INSTALL_PORTABLE) | ||||
| Show All 37 Lines | if(APPLE) | ||||
| info_cfg_option(WITH_PYTHON_FRAMEWORK) | info_cfg_option(WITH_PYTHON_FRAMEWORK) | ||||
| endif() | endif() | ||||
| info_cfg_text("Modifiers:") | info_cfg_text("Modifiers:") | ||||
| info_cfg_option(WITH_MOD_BOOLEAN) | info_cfg_option(WITH_MOD_BOOLEAN) | ||||
| info_cfg_option(WITH_MOD_REMESH) | info_cfg_option(WITH_MOD_REMESH) | ||||
| info_cfg_option(WITH_MOD_FLUID) | info_cfg_option(WITH_MOD_FLUID) | ||||
| info_cfg_option(WITH_MOD_OCEANSIM) | info_cfg_option(WITH_MOD_OCEANSIM) | ||||
| info_cfg_option(WITH_MOD_PARTMESHER) | |||||
| info_cfg_text("OpenGL:") | info_cfg_text("OpenGL:") | ||||
| info_cfg_option(WITH_GLEW_ES) | info_cfg_option(WITH_GLEW_ES) | ||||
| info_cfg_option(WITH_GLU) | info_cfg_option(WITH_GLU) | ||||
| info_cfg_option(WITH_GL_EGL) | info_cfg_option(WITH_GL_EGL) | ||||
| info_cfg_option(WITH_GL_PROFILE_COMPAT) | info_cfg_option(WITH_GL_PROFILE_COMPAT) | ||||
| info_cfg_option(WITH_GL_PROFILE_CORE) | info_cfg_option(WITH_GL_PROFILE_CORE) | ||||
| info_cfg_option(WITH_GL_PROFILE_ES20) | info_cfg_option(WITH_GL_PROFILE_ES20) | ||||
| Show All 19 Lines | |||||