2021-07-16 05:55:58 +08:00
|
|
|
find_path(LIBMICROHTTPD_INCLUDE_DIR NAMES microhttpd.h)
|
2019-07-03 06:23:53 +08:00
|
|
|
|
2021-07-16 05:55:58 +08:00
|
|
|
get_filename_component(_prefix_path ${LIBMICROHTTPD_INCLUDE_DIR} PATH)
|
2019-07-03 06:23:53 +08:00
|
|
|
|
|
|
|
find_library(
|
|
|
|
LIBMICROHTTPD_LIBRARY_DEBUG
|
2021-07-16 05:55:58 +08:00
|
|
|
NAMES libmicrohttpd-dll_d libmicrohttpd microhttpd
|
2019-07-03 06:23:53 +08:00
|
|
|
PATHS ${_prefix_path}/debug/lib
|
|
|
|
NO_DEFAULT_PATH
|
|
|
|
)
|
|
|
|
|
|
|
|
find_library(
|
|
|
|
LIBMICROHTTPD_LIBRARY_RELEASE
|
2021-07-16 05:55:58 +08:00
|
|
|
NAMES libmicrohttpd-dll libmicrohttpd microhttpd
|
2019-07-03 06:23:53 +08:00
|
|
|
PATHS ${_prefix_path}/lib
|
|
|
|
NO_DEFAULT_PATH
|
|
|
|
)
|
|
|
|
|
|
|
|
unset(_prefix_path)
|
|
|
|
|
|
|
|
include(SelectLibraryConfigurations)
|
|
|
|
select_library_configurations(LIBMICROHTTPD)
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(
|
|
|
|
LIBMICROHTTPD
|
2021-07-16 05:55:58 +08:00
|
|
|
REQUIRED_VARS LIBMICROHTTPD_LIBRARY LIBMICROHTTPD_INCLUDE_DIR
|
2019-07-03 06:23:53 +08:00
|
|
|
)
|
2021-07-16 05:55:58 +08:00
|
|
|
|
|
|
|
if(LIBMICROHTTPD_FOUND)
|
|
|
|
set(LIBMICROHTTPD_INCLUDE_DIRS ${LIBMICROHTTPD_INCLUDE_DIR})
|
|
|
|
endif()
|