1 # Try to find the clay library
3 # CLAY_FOUND - System has clay lib
4 # CLAY_INCLUDE_DIR - The clay include directory
5 # CLAY_LIBRARY - Library needed to use clay
6 # CLAY_TESTS_DIR - Share
9 if (CLAY_INCLUDE_DIR AND CLAY_LIBRARY AND CLAY_TESTS_DIR)
10 # Already in cache, be silent
11 set(CLAY_FIND_QUIETLY TRUE)
14 find_path(CLAY_INCLUDE_DIR NAMES clay/clay.h)
15 find_library(CLAY_LIBRARY NAMES clay)
16 find_path(CLAY_TESTS_DIR NAMES share/clay)
17 set(CLAY_TESTS_DIR "${CLAY_TESTS_DIR}/share/clay")
19 if (CLAY_LIBRARY AND CLAY_INCLUDE_DIR)
20 message(STATUS "Library clay found =) ${CLAY_LIBRARY}")
22 message(STATUS "Library clay not found =(")
25 message(STATUS "Clay tests found =) ${CLAY_TESTS_DIR}")
27 message(STATUS "Clay tests not found =(")
30 include(FindPackageHandleStandardArgs)
31 FIND_PACKAGE_HANDLE_STANDARD_ARGS(CLAY DEFAULT_MSG CLAY_INCLUDE_DIR CLAY_LIBRARY CLAY_TESTS_DIR)
33 mark_as_advanced(CLAY_INCLUDE_DIR CLAY_LIBRARY CLAY_TESTS_DIR)