FindFec.cmake 533 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
INCLUDE(FindPkgConfig)
PKG_CHECK_MODULES(PC_FEC fec)

FIND_PATH(
    FEC_INCLUDE_DIRS
    NAMES fec.h
    HINTS $ENV{FEC_DIR}/include
        ${PC_FEC_INCLUDEDIR}
    PATHS /usr/local/include
          /usr/include
)

FIND_LIBRARY(
    FEC_LIBRARIES
    NAMES fec
    HINTS $ENV{FEC_DIR}/lib
        ${PC_FEC_LIBDIR}
    PATHS /usr/local/lib
          /usr/local/lib64
          /usr/lib
          /usr/lib64
)

INCLUDE(FindPackageHandleStandardArgs)
25
FIND_PACKAGE_HANDLE_STANDARD_ARGS(FEC DEFAULT_MSG FEC_LIBRARIES FEC_INCLUDE_DIRS)