54 lines
1.4 KiB
CMake
54 lines
1.4 KiB
CMake
# - Try to find fvad include dirs and libraries
|
|
#
|
|
# Usage of this module as follows:
|
|
#
|
|
# find_package(fvad)
|
|
#
|
|
# Variables used by this module, they can change the default behaviour and need
|
|
# to be set before calling find_package:
|
|
#
|
|
# fvad_ROOT_DIR Set this variable to the root installation of
|
|
# fvad if the module has problems finding the
|
|
# proper installation path.
|
|
#
|
|
# Variables defined by this module:
|
|
#
|
|
# fvad_FOUND System has fvad, include and library dirs found
|
|
# fvad_INCLUDE_DIR The fvad include directories.
|
|
# fvad_LIBRARIES_STATIC The fvad libraries.
|
|
# fvad_LIBRARIES_SHARED The fvad libraries.
|
|
|
|
find_path(fvad_ROOT_DIR
|
|
NAMES include/fvad.h
|
|
HINTS ${fvad_ROOT_DIR}
|
|
)
|
|
|
|
find_path(fvad_INCLUDE_DIR
|
|
NAMES fvad.h
|
|
HINTS ${fvad_ROOT_DIR}/include/
|
|
)
|
|
|
|
find_library(fvad_LIBRARIES_STATIC
|
|
NAMES libfvad.a libfvad.lib
|
|
PATH_SUFFIXES lib/
|
|
HINTS
|
|
${fvad_ROOT_DIR}/lib
|
|
)
|
|
|
|
find_library(fvad_LIBRARIES_SHARED
|
|
NAMES libfvad.dll libfvad.so
|
|
PATH_SUFFIXES lib bin
|
|
HINTS ${fvad_ROOT_DIR} ${fvad_ROOT_DIR}/build ${fvad_ROOT_DIR}/libs ${fvad_ROOT_DIR}/out/
|
|
)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(fvad DEFAULT_MSG
|
|
fvad_INCLUDE_DIR
|
|
)
|
|
|
|
mark_as_advanced(
|
|
fvad_ROOT_DIR
|
|
fvad_INCLUDE_DIR
|
|
fvad_LIBRARIES_STATIC
|
|
fvad_LIBRARIES_SHARED
|
|
) |