forked from TheFoundryVisionmongers/KatanaUsdPlugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
34 lines (27 loc) · 1.11 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
cmake_minimum_required(VERSION 3.12)
project(KatanaUsdPlugins)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules
${CMAKE_CURRENT_SOURCE_DIR}/cmake/macros)
#Set default option value in case PXR_PY_PACKAGE_NAME is not defined
set(PXR_PY_PACKAGE_NAME "pxr"
CACHE
STRING
"Name for the root python bindings package"
)
# Ensure we can get the root of this project at all times.
set(KATANA_USD_PLUGINS_SRC_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
include(Support)
if(NOT GEOLIB_API_SOURCE_DIR)
set(GEOLIB_API_SOURCE_DIR ${KATANA_API_SOURCE_DIR})
endif()
message(STATUS "KATANA_API_SOURCE_DIR is ${KATANA_API_SOURCE_DIR}")
message(STATUS "GEOLIB_API_SOURCE_DIR is ${GEOLIB_API_SOURCE_DIR}")
set(PXR_INSTALL_SUBDIR "")
option(ENABLE_USD_EXPORT "Enables building and installing the \
UsdExport subdirectory and supporting logic." ON)
option(ENABLE_USD_RENDER_INFO_PLUGIN "Enables building and installing the \
UsdRenderInfoPlugin subdirectory and supporting logic." ON)
add_subdirectory(lib)
add_subdirectory(plugin)
add_subdirectory(python)