2019-07-01 06:40:51 -04:00
|
|
|
# - 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.
|
|
|
|
|
2019-07-01 20:23:51 -04:00
|
|
|
include(tearoot-helper)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
|
2019-07-01 06:40:51 -04:00
|
|
|
find_path(fvad_ROOT_DIR
|
|
|
|
NAMES include/fvad.h
|
2019-07-01 20:23:51 -04:00
|
|
|
HINTS ${fvad_ROOT_DIR} ${fvad_ROOT_DIR}/${BUILD_OUTPUT}
|
2019-07-01 06:40:51 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
find_path(fvad_INCLUDE_DIR
|
|
|
|
NAMES fvad.h
|
2019-07-01 20:23:51 -04:00
|
|
|
HINTS ${fvad_ROOT_DIR} ${fvad_ROOT_DIR}/include/
|
2019-07-01 06:40:51 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
find_library(fvad_LIBRARIES_STATIC
|
2019-07-06 15:47:32 -04:00
|
|
|
NAMES fvad.lib libfvad.a libfvad.lib
|
2019-07-01 20:23:51 -04:00
|
|
|
HINTS ${fvad_ROOT_DIR} ${fvad_ROOT_DIR}/lib
|
2019-07-01 06:40:51 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
find_library(fvad_LIBRARIES_SHARED
|
|
|
|
NAMES libfvad.dll libfvad.so
|
2019-07-01 20:23:51 -04:00
|
|
|
HINTS ${fvad_ROOT_DIR} ${fvad_ROOT_DIR}/lib
|
2019-07-01 06:40:51 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
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
|
|
|
|
)
|