2019-07-03 06:23:53 +08:00
|
|
|
find_path(
|
2021-07-16 05:55:58 +08:00
|
|
|
UUID_INCLUDE_DIR
|
2019-07-03 06:23:53 +08:00
|
|
|
NAMES uuid/uuid.h
|
|
|
|
)
|
|
|
|
|
2021-07-16 05:55:58 +08:00
|
|
|
get_filename_component(_prefix_path ${UUID_INCLUDE_DIR} PATH)
|
2019-07-03 06:23:53 +08:00
|
|
|
|
|
|
|
find_library(
|
|
|
|
UUID_LIBRARY_DEBUG
|
|
|
|
NAMES uuid
|
|
|
|
PATHS ${_prefix_path}/debug/lib
|
|
|
|
NO_DEFAULT_PATH
|
|
|
|
)
|
|
|
|
|
|
|
|
find_library(
|
|
|
|
UUID_LIBRARY_RELEASE
|
|
|
|
NAMES uuid
|
|
|
|
PATHS ${_prefix_path}/lib
|
|
|
|
NO_DEFAULT_PATH
|
|
|
|
)
|
|
|
|
|
|
|
|
unset(_prefix_path)
|
|
|
|
|
|
|
|
include(SelectLibraryConfigurations)
|
|
|
|
select_library_configurations(UUID)
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(
|
|
|
|
UUID
|
2021-07-16 05:55:58 +08:00
|
|
|
REQUIRED_VARS UUID_LIBRARY UUID_INCLUDE_DIR
|
2019-07-03 06:23:53 +08:00
|
|
|
)
|
2021-07-16 05:55:58 +08:00
|
|
|
|
|
|
|
if(UUID_FOUND)
|
|
|
|
set(UUID_INCLUDE_DIRS ${UUID_INCLUDE_DIR})
|
|
|
|
endif()
|