Add piplib.h.in file
[candl.git] / candl-config.cmake
blobc1047d0a8442f40386feb0a94f570f5c5702b56b
1 # Try to find the candl library
3 # CANDL_FOUND       - System has candl lib
4 # CANDL_INCLUDE_DIR - The candl include directory
5 # CANDL_LIBRARY     - Library needed to use candl
8 if (CANDL_INCLUDE_DIR AND CANDL_LIBRARY)
9         # Already in cache, be silent
10         set(CANDL_FIND_QUIETLY TRUE)
11 endif()
13 find_path(CANDL_INCLUDE_DIR NAMES candl/candl.h)
14 find_library(CANDL_LIBRARY NAMES candl)
16 if (CANDL_LIBRARY AND CANDL_INCLUDE_DIR)
17         message(STATUS "Library candl found =) ${CANDL_LIBRARY}")
18 else()
19         message(STATUS "Library candl not found =(")
20 endif()
22 include(FindPackageHandleStandardArgs)
23 FIND_PACKAGE_HANDLE_STANDARD_ARGS(CANDL DEFAULT_MSG CANDL_INCLUDE_DIR CANDL_LIBRARY)
25 mark_as_advanced(CANDL_INCLUDE_DIR CANDL_LIBRARY)