1 Star 0 Fork 0

云起云变 / USD

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CMakeLists.txt 1.85 KB
一键复制 编辑 原始数据 按行查看 历史
cmake_minimum_required(VERSION 3.12)
project(usd)
if (NOT CMAKE_SIZEOF_VOID_P EQUAL 8)
if (WIN32)
message(FATAL_ERROR "Compiler does not support 64-bit builds. "
"If you are using Visual Studio, make sure you are in the "
"x64 command prompt and have specified the Win64 cmake "
"generator (e.g., -G \"Visual Studio 14 2015 Win64\")")
else()
message(FATAL_ERROR "Compiler does not support 64-bit builds.")
endif()
endif()
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
${CMAKE_SOURCE_DIR}/cmake/defaults
${CMAKE_SOURCE_DIR}/cmake/modules
${CMAKE_SOURCE_DIR}/cmake/macros)
include(Options)
include(ProjectDefaults)
include(Packages)
# This has to be defined after Packages is included, because it relies on the
# discovered path to the python executable.
set(PXR_PYTHON_SHEBANG "${PYTHON_EXECUTABLE}"
CACHE
STRING
"Replacement path for Python #! line."
)
# CXXDefaults will set a variety of variables for the project.
# Consume them here. This is an effort to keep the most common
# build files readable.
include(CXXDefaults)
add_definitions(${_PXR_CXX_DEFINITIONS})
set(CMAKE_CXX_FLAGS "${_PXR_CXX_FLAGS} ${CMAKE_CXX_FLAGS}")
include(Public)
pxr_toplevel_prologue()
add_subdirectory(pxr)
add_subdirectory(extras)
if (PXR_BUILD_PRMAN_PLUGIN)
set(prmanPluginPath "third_party/renderman-${RENDERMAN_VERSION_MAJOR}")
get_filename_component(prmanPluginAbsPath "${prmanPluginPath}" ABSOLUTE)
if (EXISTS "${prmanPluginAbsPath}")
add_subdirectory("${prmanPluginPath}")
else()
message(FATAL_ERROR "No RenderMan plugin available for "
"RenderMan ${RENDERMAN_VERSION_MAJOR}")
endif()
endif()
if (PXR_BUILD_DOCUMENTATION)
pxr_build_documentation()
endif()
pxr_toplevel_epilogue()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/neequ_admin/USD.git
git@gitee.com:neequ_admin/USD.git
neequ_admin
USD
USD
release

搜索帮助

344bd9b3 5694891 D2dac590 5694891