vcpkg/ports/czmq/Findlibmicrohttpd.cmake
myd7349 fb4cc37262 [czmq] Add new port (#4979)
* [czmq] Add new port

* [czmq] Modernize

* [czmq] Update to 2019-05-17

* [czmq] Update to 2019-05-29

* [czmq] Fix OpenSSL not found issue on x64-windows

* [czmq] Update portfile.cmake

* [czmq] Update to 2019-06-10

* [czmq] Clean

* [czmq] Add Homepage

* [czmq] Use vcpkg_check_features

* [czmq] Disable parallel configuration

* Fix typo when using feature options
2019-07-02 15:23:53 -07:00

29 lines
674 B
CMake

find_path(LIBMICROHTTPD_INCLUDE_DIRS NAMES microhttpd.h)
get_filename_component(_prefix_path ${LIBMICROHTTPD_INCLUDE_DIRS} PATH)
find_library(
LIBMICROHTTPD_LIBRARY_DEBUG
NAMES libmicrohttpd microhttpd
PATHS ${_prefix_path}/debug/lib
NO_DEFAULT_PATH
)
find_library(
LIBMICROHTTPD_LIBRARY_RELEASE
NAMES libmicrohttpd microhttpd
PATHS ${_prefix_path}/lib
NO_DEFAULT_PATH
)
unset(_prefix_path)
include(SelectLibraryConfigurations)
select_library_configurations(LIBMICROHTTPD)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(
LIBMICROHTTPD
REQUIRED_VARS LIBMICROHTTPD_LIBRARIES LIBMICROHTTPD_INCLUDE_DIRS
)