forked from LumaPictures/usd-arnold
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
72 lines (56 loc) · 1.84 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
project(usdai)
# >=3.1 is required for CMAKE_CXX_STANDARD
cmake_minimum_required(VERSION 3.1)
set(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)
# add_compile_options(-Wall -DBUILD_OPTLEVEL_OPT -DBUILD_COMPONENT_SRC_PREFIX="")
if (NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 11)
endif()
set(CMAKE_CXX_EXTENSIONS OFF)
include_directories(SYSTEM ${USD_INCLUDE_DIR})
link_directories(${USD_LIBRARY_DIR})
include_directories(SYSTEM ${ARNOLD_INCLUDE_DIR})
include_directories(SYSTEM ${TBB_INCLUDE_DIRS})
include_directories(SYSTEM ${PYTHON_INCLUDE_DIRS})
if (BUILD_USD_PLUGIN)
if (PXR_BUILD_TESTS)
find_package(GTest REQUIRED)
endif ()
add_subdirectory(lib/pxr/usd/usdAi)
add_subdirectory(utils)
endif ()
if (BUILD_USD_IMAGING_PLUGIN)
add_subdirectory(plugin/pxr/imaging/hdAi)
add_subdirectory(plugin/pxr/usd/ndrAi)
add_subdirectory(shader)
endif ()
if (BUILD_USD_MAYA_PLUGIN)
add_subdirectory(maya)
endif ()
if (BUILD_USD_KATANA_PLUGIN)
add_subdirectory(katana)
endif ()
if (BUILD_USD_HOUDINI_PLUGIN)
add_subdirectory(houdini)
endif ()
install(FILES README.md DESTINATION .)
install(FILES LICENSE.md DESTINATION .)