2 # LFSC_FOUND - system has LFSC lib
3 # LFSC_INCLUDE_DIR - the LFSC include directory
4 # LFSC_LIBRARIES - Libraries needed to use LFSC
7 # Check default location of LFSC built with contrib/get-lfsc.
8 # If the user provides a directory we will not search the default paths and
9 # fail if LFSC was not found in the specified directory.
11 set(LFSC_HOME ${PROJECT_SOURCE_DIR}/lfsc-checker/install)
12 set(CHECK_SYSTEM_VERSION TRUE)
15 find_path(LFSC_INCLUDE_DIR
17 PATHS ${LFSC_HOME}/include
19 find_library(LFSC_LIBRARIES
21 PATHS ${LFSC_HOME}/lib
24 if(CHECK_SYSTEM_VERSION)
25 find_path(LFSC_INCLUDE_DIR NAMES lfscc.h)
26 find_library(LFSC_LIBRARIES NAMES lfscc)
29 include(FindPackageHandleStandardArgs)
30 find_package_handle_standard_args(LFSC
32 LFSC_INCLUDE_DIR LFSC_LIBRARIES)
34 mark_as_advanced(LFSC_INCLUDE_DIR LFSC_LIBRARIES)
36 message(STATUS "Found LFSC libs: ${LFSC_LIBRARIES}")