forked from TheFoundryVisionmongers/KatanaUsdPlugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
41 lines (31 loc) · 1.24 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
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)
# RODEO
set(KATANA_API_LOCATION $ENV{REZ_KATANA_REAL_ROOT})
set(USE_KATANA_THIRDPARTY_LIBS ON)
set(PXR_PY_PACKAGE_NAME "fnpxr")
#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)