# # KADMOS_FOUND - system has KADMOS libs # KADMOS_INCLUDE_DIR - the KADMOS include directory # KADMOS_LIBRARIES - The libraries needed to use KADMOS # Copyright (c) 2006, Laurent Montel, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. if (KADMOS_INCLUDE_DIR) # Already in cache, be silent set(KADMOS_FIND_QUIETLY TRUE) endif (KADMOS_INCLUDE_DIR) FIND_PATH(KADMOS_INCLUDE_DIR kadmos.h /usr/include /usr/local/include ) FIND_PATH(KADMOS_LIBRARY NAMES librep.a /usr/lib /usr/local/lib ) if (KADMOS_INCLUDE_DIR AND KADMOS_LIBRARY) set(KADMOS_FOUND TRUE) set(KADMOS_LIBRARIES ${SANE_LIBRARY}) else (KADMOS_INCLUDE_DIR AND KADMOS_LIBRARY) set(KADMOS_FOUND FALSE) endif (KADMOS_INCLUDE_DIR AND KADMOS_LIBRARY) if (KADMOS_FOUND) if (NOT KADMOS_FIND_QUIETLY) message(STATUS "Found kadmos: ${KADMOS_LIBRARIES}") endif (NOT KADMOS_FIND_QUIETLY) else (KADMOS_FOUND) if (NOT KADMOS_FIND_QUIETLY) message(STATUS "didn't find KADMOS") endif (NOT KADMOS_FIND_QUIETLY) endif (KADMOS_FOUND) MARK_AS_ADVANCED(KADMOS_INCLUDE_DIR KADMOS_LIBRARIES KADMOS_LIBRARY)