mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 19:59:46 +00:00
a8169a0139
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29416 a592a061-630c-0410-9148-cb99ea01b6c8
35 lines
978 B
CMake
35 lines
978 B
CMake
#
|
|
# based on FindZLIB.cmake
|
|
# created 2009, Kornel Benko, <kornel.benko@berlin.de>
|
|
#
|
|
|
|
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
|
|
|
|
if (AIKSAURUSLIB_INCLUDE_DIR)
|
|
# Already in cache, be silent
|
|
set(AIKSAURUSLIB_FIND_QUIETLY TRUE)
|
|
endif()
|
|
|
|
find_path(AIKSAURUSLIB_INCLUDE_DIR NAMES Aiksaurus.h
|
|
PATH_SUFFIXES "" "Aiksaurus")
|
|
if(AIKSAURUSLIB_INCLUDE_DIR)
|
|
if(AIKSAURUSLIB_INCLUDE_DIR MATCHES "Aiksaurus")
|
|
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)
|
|
|
|
# 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)
|
|
|
|
mark_as_advanced(AIKSAURUSLIB_LIBRARY AIKSAURUSLIB_INCLUDE_DIR)
|