diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2018-08-13 17:49:47 -0700 |
---|---|---|
committer | Mathias Preiner <mathias.preiner@gmail.com> | 2018-09-22 16:30:59 -0700 |
commit | 782da6094716b80d3b2b50eb126a0d5fe1cd8c89 (patch) | |
tree | 877d1645cb9a5b50d6f9ffe327beaf1a9ba9f9fb /cmake/FindLFSC.cmake | |
parent | 9054be41a79824bf766413a8d704e5dd14baca40 (diff) |
cmake: Add module finder for LFSC.
Diffstat (limited to 'cmake/FindLFSC.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) |