client-root/cmake/FindDataPipes.cmake

53 lines
1.6 KiB
CMake
Raw Normal View History

2019-07-01 06:40:51 -04:00
# - Try to find DataPipes include dirs and libraries
#
# Usage of this module as follows:
#
# find_package(DataPipes)
#
# Variables used by this module, they can change the default behaviour and need
# to be set before calling find_package:
#
# DataPipes_ROOT_DIR Set this variable to the root installation of
# DataPipes if the module has problems finding the
# proper installation path.
#
# Variables defined by this module:
#
# DataPipes_FOUND System has DataPipes, include and library dirs found
# DataPipes_INCLUDE_DIR The DataPipes include directories.
# DataPipes_LIBRARIES_STATIC The DataPipes libraries.
# DataPipes_LIBRARIES_SHARED The DataPipes libraries.
include(tearoot-helper)
include(FindPackageHandleStandardArgs)
2019-07-01 06:40:51 -04:00
find_path(DataPipes_ROOT_DIR
NAMES include/buffer.h include/pipeline.h CMakeLists.txt
HINTS ${DataPipes_ROOT_DIR} ${DataPipes_ROOT_DIR}/${BUILD_OUTPUT}
2019-07-01 06:40:51 -04:00
)
find_path(DataPipes_INCLUDE_DIR
NAMES pipes/pipeline.h pipes/buffer.h
HINTS ${DataPipes_ROOT_DIR}/include/
2019-07-01 06:40:51 -04:00
)
find_library(DataPipes_LIBRARIES_STATIC
NAMES DataPipes.lib libDataPipes.a
HINTS ${DataPipes_ROOT_DIR} ${DataPipes_ROOT_DIR}/lib
2019-07-01 06:40:51 -04:00
)
find_library(DataPipes_LIBRARIES_SHARED
NAMES DataPipes.dll libDataPipes.so
HINTS ${DataPipes_ROOT_DIR} ${DataPipes_ROOT_DIR}/lib
2019-07-01 06:40:51 -04:00
)
find_package_handle_standard_args(DataPipes DEFAULT_MSG
DataPipes_INCLUDE_DIR
)
mark_as_advanced(
DataPipes_ROOT_DIR
DataPipes_INCLUDE_DIR
DataPipes_LIBRARIES_STATIC
DataPipes_LIBRARIES_SHARED
)