mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
050e71d01d
* [various ports] remove references to CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS * [alac,benchmark,capnproto] Fix check_linkage call * [fastlz] Fix SHA512 * [coroutine] Fix dynamic build * [folly] Find double-conversion * [gamma] Use vcpkg_from_github * [librsync] Enable static builds * [netcdf-cxx4] Fix SHA512 * [octomap] Fix static build * [tidy-html5] Fix static build * [various ports] remove custom messages for shared/static builds, modernize some scripts in the meantime * [folly] Use ras0219's fix for link paths * [octomap] Fix exported targets * [uvatlas] Set tool download SHA512 * [duktape+python2] fix portfile to call configure with correct python version, manage python2 also outside win32 * [suitesparse] osx fix * [gtkmm] Call vcpkg_check_linkage after including vcpkg functions * [duktape] Resolve conflicts * [duktape] FIxed typo in Python paths * [wangle] Find zlib * [openssl-uwp] Fix SHA512 * [glib] Allow static builds on non-Windows * [suitesparse] Fix build on Windows * [multiple ports] Bump CONTROL version * [multiple ports] Fix description indent * [directxtk] Fix CONTROL file * [bde,duktape,qpid-proton] Build packages with python2 installed * [binn] remove CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS * [gdal,live555,uriparser] Fix regressions * [live555] Update to 2019.04.24
75 lines
1.8 KiB
CMake
75 lines
1.8 KiB
CMake
cmake_minimum_required(VERSION 3.8)
|
|
project(libmicrohttpd C)
|
|
|
|
if(MSVC)
|
|
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
|
|
endif()
|
|
|
|
set(MIN_SRC contrib/libmicrohttpd)
|
|
|
|
|
|
set(SRC
|
|
src/microhttpd/base64.c
|
|
src/microhttpd/basicauth.c
|
|
src/microhttpd/connection.c
|
|
src/microhttpd/daemon.c
|
|
src/microhttpd/digestauth.c
|
|
src/microhttpd/internal.c
|
|
src/microhttpd/md5.c
|
|
src/microhttpd/memorypool.c
|
|
src/microhttpd/mhd_mono_clock.c
|
|
src/microhttpd/postprocessor.c
|
|
src/microhttpd/reason_phrase.c
|
|
src/microhttpd/response.c
|
|
src/microhttpd/tsearch.c
|
|
src/microhttpd/sysfdsetsize.c
|
|
src/microhttpd/mhd_str.c
|
|
src/microhttpd/mhd_threads.c
|
|
src/microhttpd/mhd_sockets.c
|
|
src/microhttpd/mhd_itc.c
|
|
src/microhttpd/mhd_compat.c
|
|
)
|
|
set(HEADERS
|
|
src/microhttpd/base64.h
|
|
src/microhttpd/connection.h
|
|
src/microhttpd/internal.h
|
|
src/microhttpd/md5.h
|
|
src/microhttpd/memorypool.h
|
|
src/microhttpd/mhd_byteorder.h
|
|
src/microhttpd/mhd_limits.h
|
|
src/microhttpd/mhd_mono_clock.h
|
|
src/microhttpd/response.h
|
|
src/microhttpd/tsearch.h
|
|
src/microhttpd/sysfdsetsize.h
|
|
src/microhttpd/mhd_str.h
|
|
src/microhttpd/mhd_threads.h
|
|
src/microhttpd/mhd_locks.h
|
|
src/microhttpd/mhd_sockets.h
|
|
src/microhttpd/mhd_itc.h
|
|
src/microhttpd/mhd_itc_types.h
|
|
src/microhttpd/mhd_compat.h
|
|
)
|
|
|
|
include_directories(${HEADERS} src/include w32/common)
|
|
|
|
add_library(libmicrohttpd ${SRC})
|
|
|
|
if(BUILD_SHARED_LIBS)
|
|
target_compile_definitions(libmicrohttpd PRIVATE -DMHD_W32DLL)
|
|
else()
|
|
target_compile_definitions(libmicrohttpd PRIVATE -DMHD_W32LIB)
|
|
endif()
|
|
|
|
target_link_libraries(libmicrohttpd ws2_32)
|
|
|
|
install(
|
|
TARGETS libmicrohttpd
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
)
|
|
|
|
if(NOT DISABLE_INSTALL_HEADERS)
|
|
install(FILES src/include/microhttpd.h DESTINATION include)
|
|
endif()
|