option(NO_UNDEFINED          "Active no-undefined compile options" ON)
option(USD_FILEFORMATS_ENABLE_ASSET_TESTS   "Build the more in depth unit tests using downloaded assets." OFF)
option(USDPLY_ENABLE_INSTALL "Enable installation of plugin artifacts" ON)

if (NOT TARGET usd)
    find_package(pxr REQUIRED)
endif()
if(USD_FILEFORMATS_BUILD_TESTS)
    find_package(GTest REQUIRED)
endif()
find_package(Happly REQUIRED)


add_subdirectory(src)
if (USD_FILEFORMATS_BUILD_TESTS)
    add_subdirectory(tests)
endif ()

#We only want PLY in our package
set(CPACK_INSTALL_CMAKE_PROJECTS "src;usdPly;ALL;/")

include(CPack)
