forked from PixarAnimationStudios/OpenUSD
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finish most of the APIs for implement test (PixarAnimationStudios#79)
(cherry picked from commit 33226577edfd040e79626e895491354c0ff5179b)
- Loading branch information
1 parent
754b450
commit 6e88839
Showing
19 changed files
with
804 additions
and
189 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# - Find TextSystem library | ||
# Find the native TextSystem includes and library | ||
# This module defines | ||
# TEXTSYSTEM_INCLUDE_DIRS, where to find TextSystem headers, Set when | ||
# TEXTSYSTEM_INCLUDE_DIR is found. | ||
# TEXTSYSTEM_LIBRARIES, libraries to link against to use TextSystem. | ||
# TEXTSYSTEM_ROOT_DIR, the base directory to search for TextSystem. | ||
# This can also be an environment variable. | ||
# TEXTSYSTEM_FOUND, if false, do not try to use TextSystem. | ||
# | ||
# also defined, but not for general use are | ||
# TEXTSYSTEM_LIBRARY, where to find the TextSystem library. | ||
|
||
#============================================================================= | ||
# Copyright 2021 Blender Foundation. | ||
# | ||
# Distributed under the OSI-approved BSD License (the "License"); | ||
# see accompanying file Copyright.txt for details. | ||
# | ||
# This software is distributed WITHOUT ANY WARRANTY; without even the | ||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
# See the License for more information. | ||
#============================================================================= | ||
|
||
# If TEXTSYSTEM_ROOT_DIR was defined in the environment, use it. | ||
IF(NOT TEXTSYSTEM_ROOT_DIR AND NOT $ENV{TEXTSYSTEM_ROOT_DIR} STREQUAL "") | ||
SET(TEXTSYSTEM_ROOT_DIR $ENV{TEXTSYSTEM_ROOT_DIR}) | ||
ENDIF() | ||
|
||
SET(TEXTSYSTEM_FIND_COMPONENTS | ||
text_system | ||
) | ||
|
||
SET(TEXTSYSTEM_SEARCH_DIRS | ||
${TEXTSYSTEM_ROOT_DIR} | ||
) | ||
|
||
FIND_PATH(TEXTSYSTEM_INCLUDE_DIR | ||
NAMES | ||
TextSystem/TextSystem.h | ||
HINTS | ||
${TEXTSYSTEM_SEARCH_DIRS} | ||
PATH_SUFFIXES | ||
include | ||
) | ||
|
||
SET(TEXTSYSTEM_LIBRARIES) | ||
FOREACH(COMPONENT ${TEXTSYSTEM_FIND_COMPONENTS}) | ||
STRING(TOUPPER ${COMPONENT} UPPERCOMPONENT) | ||
FIND_LIBRARY(TEXTSYSTEM_${UPPERCOMPONENT}_LIBRARY | ||
NAMES | ||
${COMPONENT} | ||
HINTS | ||
${TEXTSYSTEM_SEARCH_DIRS} | ||
PATH_SUFFIXES | ||
lib64 lib | ||
) | ||
if(DEFINED TEXTSYSTEM_${UPPERCOMPONENT}_LIBRARY) | ||
LIST(APPEND | ||
TEXTSYSTEM_LIBRARIES | ||
"${TEXTSYSTEM_${UPPERCOMPONENT}_LIBRARY}") | ||
set(TEXTSYSTEM_FOUND TRUE) | ||
endif() | ||
ENDFOREACH() | ||
|
||
IF(TEXTSYSTEM_FOUND) | ||
SET(TEXTSYSTEM_LIBRARIES ${TEXTSYSTEM_LIBRARIES}) | ||
SET(TEXTSYSTEM_INCLUDE_DIRS ${TEXTSYSTEM_INCLUDE_DIR}) | ||
ENDIF(TEXTSYSTEM_FOUND) | ||
|
||
MARK_AS_ADVANCED( | ||
TEXTSYSTEM_INCLUDE_DIR | ||
) | ||
FOREACH(COMPONENT ${TEXTSYSTEM_FIND_COMPONENTS}) | ||
STRING(TOUPPER ${COMPONENT} UPPERCOMPONENT) | ||
MARK_AS_ADVANCED(TEXTSYSTEM_${UPPERCOMPONENT}_LIBRARY) | ||
ENDFOREACH() | ||
|
||
# handle the QUIETLY and REQUIRED arguments and set TEXTSYSTEM_FOUND to TRUE if | ||
# all listed variables are TRUE | ||
INCLUDE(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(TEXTSYSTEM | ||
REQUIRED_VARS | ||
TEXTSYSTEM_INCLUDE_DIR | ||
TEXTSYSTEM_LIBRARIES | ||
) |
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
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
Oops, something went wrong.