diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindLFSC.cmake | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cmake/FindLFSC.cmake b/cmake/FindLFSC.cmake new file mode 100644 index 000000000..7176b2015 --- /dev/null +++ b/cmake/FindLFSC.cmake @@ -0,0 +1,18 @@ +# Find LFSC +# LFSC_FOUND - system has LFSC lib +# LFSC_INCLUDE_DIR - the LFSC include directory +# LFSC_LIBRARIES - Libraries needed to use LFSC + +find_path(LFSC_INCLUDE_DIR + NAMES lfscc.h + PATHS "${PROJECT_SOURCE_DIR}/lfsc-checker/install/include") +find_library(LFSC_LIBRARIES + NAMES lfscc + PATHS "${PROJECT_SOURCE_DIR}/lfsc-checker/install/lib") + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(LFSC + DEFAULT_MSG + LFSC_INCLUDE_DIR LFSC_LIBRARIES) + +mark_as_advanced(LFSC_INCLUDE_DIR LFSC_LIBRARIES) |