Upgrade CMake build process (shared and static library, clan, test, doc, reference...
[clan/joel.poudroux.git] / clan-config.cmake
bloba490797aa49928a63b0565ff26056a22acf8b8c5
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)
11 endif()
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}")
18 else()
19         message(STATUS "Library clan not found =(")
20 endif()
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)