1 # - Try to find Libfacile
2 # Once done this will define
4 # LIBFACILE_FOUND - system has Libfacile
5 # LIBFACILE_INCLUDE_DIR - the Libfacile include directory
6 # LIBFACILE_LIBRARIES - Link these to use Libfacile
7 # LIBFACILE_DEFINITIONS - Compiler switches required for using Libfacile
9 # Copyright (c) 2006, Carsten Niehaus, <cniehaus@gmx.de>
10 # Copyright (c) 2006, Montel Laurent, <montel@kde.org>
11 # Redistribution and use is allowed according to the terms of the BSD license.
12 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
17 set(LIBFACILE_FOUND FALSE)
20 find_file(LIBFACILE_LIBRARIES NAMES facile.a
24 #message(STATUS "LIBFACILE_LIBRARIES :<${LIBFACILE_LIBRARIES}>")
25 find_path(LIBFACILE_INCLUDE_DIR NAMES facile.a
30 #message(STATUS "LIBFACILE_INCLUDE_DIR <${LIBFACILE_INCLUDE_DIR}>")
31 if(LIBFACILE_INCLUDE_DIR AND LIBFACILE_LIBRARIES)
32 set(LIBFACILE_FOUND TRUE)
33 endif(LIBFACILE_INCLUDE_DIR AND LIBFACILE_LIBRARIES)
38 if(NOT Libfacile_FIND_QUIETLY)
39 message(STATUS "Found Libfacile: ${LIBFACILE_LIBRARIES}")
40 endif(NOT Libfacile_FIND_QUIETLY)
42 if(Libfacile_FIND_REQUIRED)
43 message(FATAL_ERROR "Could not find Libfacile")
44 endif(Libfacile_FIND_REQUIRED)
45 endif(LIBFACILE_FOUND)
47 # show the LIBFACILE_INCLUDE_DIR and LIBFACILE_LIBRARIES variables only in the advanced view
48 mark_as_advanced(LIBFACILE_INCLUDE_DIR LIBFACILE_LIBRARIES )