Skip to content

Commit

Permalink
Extract stub FindUSD module
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Flèche committed Apr 24, 2019
1 parent 3ebec5e commit ff33fc6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)

project(replace-resolver VERSION 0.1.0 LANGUAGES CXX)

list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)

enable_testing()

option(PXR_ENABLE_PYTHON_SUPPORT "Build Python wrapper and Python based tests" ON)

include(${USD_LOCATION}/pxrConfig.cmake)
find_package(USD REQUIRED)

set(USDPLUGIN_NAME replaceResolver)

Expand Down
10 changes: 10 additions & 0 deletions cmake/modules/FindUSD.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
if(EXISTS ${USD_LOCATION}/pxrConfig.cmake)
include(${USD_LOCATION}/pxrConfig.cmake)
endif()

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(USD
DEFAULT_MSG
PXR_INCLUDE_DIRS
PXR_LIBRARIES
)

0 comments on commit ff33fc6

Please sign in to comment.