Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from xantares/tinyxml2
TinyXML platform check
- Loading branch information
Showing
3 changed files
with
35 additions
and
1 deletion.
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,28 @@ | ||
# - Find TinyXML | ||
# Find the native TinyXML includes and library | ||
# | ||
# TINYXML_FOUND - True if TinyXML found. | ||
# TINYXML_INCLUDE_DIR - where to find tinyxml.h, etc. | ||
# TINYXML_LIBRARIES - List of libraries when using TinyXML. | ||
# | ||
|
||
IF( TINYXML_INCLUDE_DIR ) | ||
# Already in cache, be silent | ||
SET( TinyXML_FIND_QUIETLY TRUE ) | ||
ENDIF( TINYXML_INCLUDE_DIR ) | ||
|
||
FIND_PATH( TINYXML_INCLUDE_DIR "tinyxml.h" | ||
PATH_SUFFIXES "tinyxml" ) | ||
set (TINYXML_INCLUDE_DIRS ${TINYXML_INCLUDE_DIR}) | ||
|
||
FIND_LIBRARY( TINYXML_LIBRARY | ||
NAMES "tinyxml" | ||
PATH_SUFFIXES "tinyxml" ) | ||
set (TINYXML_LIBRARIES ${TINYXML_LIBRARY}) | ||
|
||
# handle the QUIETLY and REQUIRED arguments and set TINYXML_FOUND to TRUE if | ||
# all listed variables are TRUE | ||
INCLUDE( "FindPackageHandleStandardArgs" ) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS( "TinyXML" DEFAULT_MSG TINYXML_LIBRARY TINYXML_INCLUDE_DIR ) | ||
|
||
MARK_AS_ADVANCED( TINYXML_LIBRARY TINYXML_INCLUDE_DIR TINYXML_INCLUDE_DIRS TINYXML_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