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)
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}")
19 message(STATUS "Library candl not found =(")
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)