xref: /reactos/dll/win32/winhttp/CMakeLists.txt (revision 89271fe3)
1
2add_definitions(-D__WINESRC__)
3include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
4
5spec2def(winhttp ${CMAKE_CURRENT_SOURCE_DIR}/winhttp.spec ${CMAKE_CURRENT_BINARY_DIR}/winhttp.def)
6
7add_library(winhttp SHARED
8    cookie.c
9    handle.c
10    main.c
11    net.c
12    request.c
13    session.c
14    url.c)
15
16set_module_type(winhttp win32dll)
17
18target_link_libraries(winhttp
19    ${CMAKE_CURRENT_BINARY_DIR}/winhttp.def
20    wine)
21
22add_importlibs(winhttp shlwapi wininet ws2_32 msvcrt kernel32 ntdll)
23add_dependencies(winhttp winhttp_def)
24add_livecd_target(winhttp reactos/system32)
25