-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
307 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# TODO | ||
# draco 1.3.0(or 6?) CMake config file is broken. | ||
# fixed in latest version, but not used by USD | ||
# | ||
# TODO: pay attention to casing (draco != Draco) | ||
# we use this to prefer this Find file over the broken config | ||
# | ||
# USD does the same, but the authored config file is broken | ||
# in two ways. First, patterns of the form 'libdraco.1.dylib' | ||
# on macOS are not covered. Second, it does not find and provide | ||
# the dracodec library which we need to link against. | ||
|
||
# USD's FindDraco.cmake / config files do not cover the macOS | ||
# 'libdraco.1.dylib' case, so we roll our own Find* file. | ||
|
||
unset(draco_FOUND) | ||
unset(draco_INCLUDE_DIRS) | ||
unset(draco_LIBRARIES) | ||
|
||
mark_as_advanced(draco_FOUND) | ||
mark_as_advanced(draco_INCLUDE_DIRS) | ||
mark_as_advanced(draco_LIBRARIES) | ||
|
||
set(draco_version_file_no_prefix "draco/src/draco/core/draco_version.h") | ||
find_path(draco_INCLUDE_DIRS NAMES "${draco_version_file_no_prefix}") | ||
|
||
find_library(DRACO_LIBRARY NAMES draco PATHS "${pxr_DIR}/lib") | ||
find_library(DRACO_DEC_LIBRARY NAMES dracodec PATHS "${pxr_DIR}/lib") | ||
set(DRACO_LIBRARIES ${DRACO_LIBRARY} ${DRACO_DEC_LIBRARY}) | ||
|
||
message(STATUS ${draco_INCLUDE_DIRS}) | ||
message(STATUS ${DRACO_LIBRARY}) | ||
message(STATUS ${DRACO_DEC_LIBRARY}) | ||
|
||
if(draco_INCLUDE_DIRS AND DRACO_LIBRARY AND DRACO_DEC_LIBRARY) | ||
set(draco_FOUND YES) | ||
endif() | ||
|
||
set(draco_FOUND YES) | ||
set(XDraco_FOUND YES) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters