2009-04-25 13:33:55 +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:35:12 +00:00
|
|
|
if (AIKSAURUSLIB_INCLUDE_DIR)
|
2009-04-25 13:33:55 +00:00
|
|
|
# Already in cache, be silent
|
2009-04-26 18:35:12 +00:00
|
|
|
set(AIKSAURUSLIB_FIND_QUIETLY TRUE)
|
2009-04-25 13:33:55 +00:00
|
|
|
endif()
|
|
|
|
|
2009-04-26 18:35:12 +00:00
|
|
|
find_path(AIKSAURUSLIB_INCLUDE_DIR NAMES Aiksaurus.h
|
2009-04-25 13:33:55 +00:00
|
|
|
PATH_SUFFIXES "" "Aiksaurus")
|
2009-04-26 18:35:12 +00:00
|
|
|
if(AIKSAURUSLIB_INCLUDE_DIR)
|
|
|
|
if(AIKSAURUSLIB_INCLUDE_DIR MATCHES "Aiksaurus")
|
2010-07-17 10:31:20 +00:00
|
|
|
set(AIKSAURUSLIB_H Aiksaurus/Aiksaurus.h)
|
2009-04-25 13:33:55 +00:00
|
|
|
else()
|
2010-07-17 10:31:20 +00:00
|
|
|
set(AIKSAURUSLIB_H Aiksaurus.h)
|
2009-04-25 13:33:55 +00:00
|
|
|
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:35:12 +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:33:55 +00:00
|
|
|
|
2010-07-17 10:31:20 +00:00
|
|
|
set(AIKSAURUSLIB_H ${AIKSAURUSLIB_H} CACHE STRING "Aiksaurus header" FORCE)
|
|
|
|
|
|
|
|
mark_as_advanced(AIKSAURUSLIB_LIBRARY AIKSAURUSLIB_INCLUDE_DIR AIKSAURUSLIB_H)
|