2009-04-25 13:43:52 +00:00
|
|
|
#
|
|
|
|
# based on FindZLIB.cmake
|
|
|
|
# created 2009, Kornel Benko, <kornel.benko@berlin.de>
|
|
|
|
#
|
|
|
|
|
|
|
|
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
|
|
|
|
|
2009-04-26 18:33:09 +00:00
|
|
|
if (AIKSAURUSLIB_INCLUDE_DIR)
|
2009-04-25 13:43:52 +00:00
|
|
|
# Already in cache, be silent
|
2009-04-26 18:33:09 +00:00
|
|
|
set(AIKSAURUSLIB_FIND_QUIETLY TRUE)
|
2009-04-25 13:43:52 +00:00
|
|
|
endif()
|
|
|
|
|
2009-04-26 18:33:09 +00:00
|
|
|
find_path(AIKSAURUSLIB_INCLUDE_DIR NAMES Aiksaurus.h
|
2009-04-25 13:43:52 +00:00
|
|
|
PATH_SUFFIXES "" "Aiksaurus")
|
2009-04-26 18:33:09 +00:00
|
|
|
if(AIKSAURUSLIB_INCLUDE_DIR)
|
|
|
|
if(AIKSAURUSLIB_INCLUDE_DIR MATCHES "Aiksaurus")
|
2009-04-25 13:43:52 +00:00
|
|
|
set(AIKSAURUS_H Aiksaurus/Aiksaurus.h)
|
|
|
|
else()
|
|
|
|
set(AIKSAURUS_H Aiksaurus.h)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(POTENTIAL_AIKSAURUS_LIBS Aiksaurus)
|
|
|
|
|
|
|
|
find_library(AIKSAURUSLIB_LIBRARY NAMES ${POTENTIAL_AIKSAURUS_LIBS}
|
|
|
|
PATHS
|
|
|
|
/usr/lib /usr/local/lib)
|
|
|
|
|
2009-04-26 18:33:09 +00:00
|
|
|
# handle the QUIETLY and REQUIRED arguments and set AIKSAURUSLIB_FOUND to TRUE if
|
|
|
|
# all listed variables are TRUE
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(AIKSAURUSLIB DEFAULT_MSG AIKSAURUSLIB_LIBRARY AIKSAURUSLIB_INCLUDE_DIR)
|
2009-04-25 13:43:52 +00:00
|
|
|
|
|
|
|
mark_as_advanced(AIKSAURUSLIB_LIBRARY AIKSAURUSLIB_INCLUDE_DIR)
|