Created
September 6, 2015 21:30
-
-
Save arjanfrans/64925384017825e332b3 to your computer and use it in GitHub Desktop.
FindTmxParser.cmake
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
# Copyright (c) 2014 Andrew Kelley | |
# This file is MIT licensed. | |
# See http://opensource.org/licenses/MIT | |
# TMXPARSER_INCLUDE_DIR | |
# TMXPARSER_LIBRARY | |
# TMXPARSER_FOUND | |
find_path(TMXPARSER_INCLUDE_DIR NAMES tmxparser/Tmx.h | |
PATHS | |
/usr/local/include/ | |
/usr/local/ | |
/usr/ | |
) | |
find_library(TMXPARSER_LIBRARY NAMES tmxparser | |
PATHS | |
/usr/local | |
/usr | |
) | |
if(TMXPARSER_LIBRARY) | |
set(TMXPARSER_FOUND TRUE) | |
else() | |
set(TMXPARSER_FOUND FALSE) | |
endif() | |
include(FindPackageHandleStandardArgs) | |
find_package_handle_standard_args(TMXPARSER DEFAULT_MSG TMXPARSER_LIBRARY TMXPARSER_INCLUDE_DIR) | |
mark_as_advanced(TMXPARSER_INCLUDE_DIR TMXPARSER_LIBRARY) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment