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")
|
2010-07-17 22:24:08 +00:00
|
|
|
set(AIKSAURUSLIB_H Aiksaurus/Aiksaurus.h)
|
2009-04-25 13:43:52 +00:00
|
|
|
else()
|
2010-07-17 22:24:08 +00:00
|
|
|
set(AIKSAURUSLIB_H Aiksaurus.h)
|
2009-04-25 13:43:52 +00:00
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(POTENTIAL_AIKSAURUS_LIBS Aiksaurus)
|
|
|
|
|
|
|
|
find_library(AIKSAURUSLIB_LIBRARY NAMES ${POTENTIAL_AIKSAURUS_LIBS}
|
|
|
|
PATHS
|
2011-05-24 06:58:40 +00:00
|
|
|
${SYSTEM_LIB_DIRS})
|
2009-04-25 13:43:52 +00:00
|
|
|
|
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
|
|
|
|
2010-07-17 22:24:08 +00:00
|
|
|
set(AIKSAURUSLIB_H ${AIKSAURUSLIB_H} CACHE STRING "Aiksaurus header" FORCE)
|
|
|
|
|
|
|
|
mark_as_advanced(AIKSAURUSLIB_LIBRARY AIKSAURUSLIB_INCLUDE_DIR AIKSAURUSLIB_H)
|