Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
| Show First 20 Lines • Show All 279 Lines • ▼ Show 20 Lines | |||||
| if(UNIX AND NOT APPLE) | if(UNIX AND NOT APPLE) | ||||
| option(WITH_OPENMP_STATIC "Link OpenMP statically (only used by the release environment)" OFF) | option(WITH_OPENMP_STATIC "Link OpenMP statically (only used by the release environment)" OFF) | ||||
| mark_as_advanced(WITH_OPENMP_STATIC) | mark_as_advanced(WITH_OPENMP_STATIC) | ||||
| endif() | endif() | ||||
| if(WITH_X11) | if(WITH_X11) | ||||
| option(WITH_X11_XINPUT "Enable X11 Xinput (tablet support and unicode input)" ON) | option(WITH_X11_XINPUT "Enable X11 Xinput (tablet support and unicode input)" ON) | ||||
| option(WITH_X11_XF86VMODE "Enable X11 video mode switching" ON) | option(WITH_X11_XF86VMODE "Enable X11 video mode switching" ON) | ||||
| option(WITH_X11_XFIXES "Enable X11 XWayland cursor warping workaround" ON) | |||||
| option(WITH_X11_ALPHA "Enable X11 transparent background" ON) | option(WITH_X11_ALPHA "Enable X11 transparent background" ON) | ||||
| endif() | endif() | ||||
| if(UNIX AND NOT APPLE) | if(UNIX AND NOT APPLE) | ||||
| option(WITH_SYSTEM_GLEW "Use GLEW OpenGL wrapper library provided by the operating system" OFF) | option(WITH_SYSTEM_GLEW "Use GLEW OpenGL wrapper library provided by the operating system" OFF) | ||||
| option(WITH_SYSTEM_GLES "Use OpenGL ES library provided by the operating system" ON) | option(WITH_SYSTEM_GLES "Use OpenGL ES library provided by the operating system" ON) | ||||
| else() | else() | ||||
| # not an option for other OS's | # not an option for other OS's | ||||
| ▲ Show 20 Lines • Show All 386 Lines • ▼ Show 20 Lines | |||||
| if(WITH_INSTALL_PORTABLE) | if(WITH_INSTALL_PORTABLE) | ||||
| set(CMAKE_SKIP_BUILD_RPATH TRUE) | set(CMAKE_SKIP_BUILD_RPATH TRUE) | ||||
| endif() | endif() | ||||
| if(WITH_GHOST_SDL OR WITH_HEADLESS) | if(WITH_GHOST_SDL OR WITH_HEADLESS) | ||||
| set(WITH_X11 OFF) | set(WITH_X11 OFF) | ||||
| set(WITH_X11_XINPUT OFF) | set(WITH_X11_XINPUT OFF) | ||||
| set(WITH_X11_XF86VMODE OFF) | set(WITH_X11_XF86VMODE OFF) | ||||
| set(WITH_X11_XFIXES OFF) | |||||
| set(WITH_X11_ALPHA OFF) | set(WITH_X11_ALPHA OFF) | ||||
| set(WITH_GHOST_XDND OFF) | set(WITH_GHOST_XDND OFF) | ||||
| set(WITH_INPUT_IME OFF) | set(WITH_INPUT_IME OFF) | ||||
| endif() | endif() | ||||
| if(WITH_CPU_SSE) | if(WITH_CPU_SSE) | ||||
| TEST_SSE_SUPPORT(COMPILER_SSE_FLAG COMPILER_SSE2_FLAG) | TEST_SSE_SUPPORT(COMPILER_SSE_FLAG COMPILER_SSE2_FLAG) | ||||
| else() | else() | ||||
| ▲ Show 20 Lines • Show All 135 Lines • ▼ Show 20 Lines | if(WITH_X11_XF86VMODE) | ||||
| mark_as_advanced(X11_Xxf86vmode_LIB) | mark_as_advanced(X11_Xxf86vmode_LIB) | ||||
| if(X11_Xxf86vmode_LIB) | if(X11_Xxf86vmode_LIB) | ||||
| list(APPEND PLATFORM_LINKLIBS ${X11_Xxf86vmode_LIB}) | list(APPEND PLATFORM_LINKLIBS ${X11_Xxf86vmode_LIB}) | ||||
| else() | else() | ||||
| set(WITH_X11_XF86VMODE OFF) | set(WITH_X11_XF86VMODE OFF) | ||||
| endif() | endif() | ||||
| endif() | endif() | ||||
| if(WITH_X11_XFIXES) | |||||
| if(X11_Xfixes_LIB) | |||||
| list(APPEND PLATFORM_LINKLIBS ${X11_Xfixes_LIB}) | |||||
| else() | |||||
| set(WITH_X11_XFIXES OFF) | |||||
| endif() | |||||
| endif() | |||||
| if(WITH_X11_ALPHA) | if(WITH_X11_ALPHA) | ||||
| find_library(X11_Xrender_LIB Xrender ${X11_LIB_SEARCH_PATH}) | find_library(X11_Xrender_LIB Xrender ${X11_LIB_SEARCH_PATH}) | ||||
| mark_as_advanced(X11_Xrender_LIB) | mark_as_advanced(X11_Xrender_LIB) | ||||
| if(X11_Xrender_LIB) | if(X11_Xrender_LIB) | ||||
| list(APPEND PLATFORM_LINKLIBS ${X11_Xrender_LIB}) | list(APPEND PLATFORM_LINKLIBS ${X11_Xrender_LIB}) | ||||
| else() | else() | ||||
| set(WITH_X11_ALPHA OFF) | set(WITH_X11_ALPHA OFF) | ||||
| endif() | endif() | ||||
| ▲ Show 20 Lines • Show All 853 Lines • ▼ Show 20 Lines | if(FIRST_RUN) | ||||
| 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) | ||||
| info_cfg_option(WITH_X11_ALPHA) | info_cfg_option(WITH_X11_ALPHA) | ||||
| info_cfg_option(WITH_X11_XF86VMODE) | info_cfg_option(WITH_X11_XF86VMODE) | ||||
| info_cfg_option(WITH_X11_XFIXES) | |||||
| info_cfg_option(WITH_X11_XINPUT) | info_cfg_option(WITH_X11_XINPUT) | ||||
| info_cfg_option(WITH_MEM_JEMALLOC) | info_cfg_option(WITH_MEM_JEMALLOC) | ||||
| info_cfg_option(WITH_MEM_VALGRIND) | info_cfg_option(WITH_MEM_VALGRIND) | ||||
| info_cfg_option(WITH_SYSTEM_GLEW) | info_cfg_option(WITH_SYSTEM_GLEW) | ||||
| info_cfg_option(WITH_SYSTEM_OPENJPEG) | info_cfg_option(WITH_SYSTEM_OPENJPEG) | ||||
| info_cfg_text("Image Formats:") | info_cfg_text("Image Formats:") | ||||
| info_cfg_option(WITH_OPENIMAGEIO) | info_cfg_option(WITH_OPENIMAGEIO) | ||||
| ▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines | |||||