• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# - Try to find the CFLite library
2# Once done this will define
3#
4#  CFLITE_FOUND - System has CFLite
5#  CFLITE_INCLUDE_DIR - The CFLite include directory
6#  CFLITE_LIBRARIES - The libraries needed to use CFLite
7
8# use pkg-config to get the directories and then use these values
9# in the FIND_PATH() and FIND_LIBRARY() calls
10FIND_PACKAGE(PkgConfig)
11
12FIND_PATH(CFLITE_INCLUDE_DIR NAMES CoreFoundation/CoreFoundation.h)
13
14FIND_LIBRARY(CFLITE_LIBRARIES NAMES CFLite.lib)
15
16INCLUDE(FindPackageHandleStandardArgs)
17
18# handle the QUIETLY and REQUIRED arguments and set COREFOUNDATION_FOUND to TRUE if
19# all listed variables are TRUE
20FIND_PACKAGE_HANDLE_STANDARD_ARGS(CFLite DEFAULT_MSG CFLITE_LIBRARIES CFLITE_INCLUDE_DIR)
21
22MARK_AS_ADVANCED(CFLITE_INCLUDE_DIR CFLITE_LIBRARIES)
23