1 # Try to find the clan library
3 # CLAN_FOUND - System has clan lib
4 # CLAN_INCLUDE_DIR - The clan include directory
5 # CLAN_LIBRARY - Library needed to use clan
8 if (CLAN_INCLUDE_DIR AND CLAN_LIBRARY)
9 # Already in cache, be silent
10 set(CLAN_FIND_QUIETLY TRUE)
13 find_path(CLAN_INCLUDE_DIR NAMES clan/clan.h)
14 find_library(CLAN_LIBRARY NAMES clan)
16 if (CLAN_LIBRARY AND CLAN_INCLUDE_DIR)
17 message(STATUS "Library clan found =) ${CLAN_LIBRARY}")
19 message(STATUS "Library clan not found =(")
22 include(FindPackageHandleStandardArgs)
23 FIND_PACKAGE_HANDLE_STANDARD_ARGS(CLAN DEFAULT_MSG CLAN_INCLUDE_DIR CLAN_LIBRARY)
25 mark_as_advanced(CLAN_INCLUDE_DIR CLAN_LIBRARY)