53 lines
1.9 KiB
CMake
53 lines
1.9 KiB
CMake
# - 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.
|
|
|
|
find_path(DataPipes_ROOT_DIR
|
|
NAMES include/buffer.h include/pipeline.h CMakeLists.txt
|
|
HINTS ${DataPipes_ROOT_DIR}
|
|
)
|
|
|
|
find_path(DataPipes_INCLUDE_DIR
|
|
NAMES pipes/pipeline.h pipes/buffer.h
|
|
HINTS ${DataPipes_ROOT_DIR}/out/win32/include/ ${DataPipes_ROOT_DIR}/out/win32_amd64/include/
|
|
)
|
|
|
|
find_library(DataPipes_LIBRARIES_STATIC
|
|
NAMES DataPipes.lib libDataPipes.a
|
|
PATH_SUFFIXES out/win32_amd64/Release out/win32/Release out/win32_x64/Release
|
|
HINTS ${DataPipes_ROOT_DIR} ${DataPipes_ROOT_DIR}/build ${DataPipes_ROOT_DIR}/libs ${DataPipes_ROOT_DIR}/out/
|
|
)
|
|
|
|
find_library(DataPipes_LIBRARIES_SHARED
|
|
NAMES DataPipes.dll libDataPipes.so
|
|
PATH_SUFFIXES out/win32_amd64/Release out/win32/Release out/win32_x64/Release
|
|
HINTS ${DataPipes_ROOT_DIR} ${DataPipes_ROOT_DIR}/build ${DataPipes_ROOT_DIR}/libs ${DataPipes_ROOT_DIR}/out/
|
|
)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
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
|
|
) |