Sync with trunk r64509.
[reactos.git] / dll / win32 / winhttp / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -D_WINE)
5
6 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
7 spec2def(winhttp.dll winhttp.spec ADD_IMPORTLIB)
8
9 list(APPEND SOURCE
10 cookie.c
11 handle.c
12 main.c
13 net.c
14 request.c
15 session.c
16 url.c
17 winhttp_private.h)
18
19 set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/winhttp_tlb.tlb)
20 add_typelib(winhttp_tlb.idl)
21
22 add_library(winhttp SHARED
23 ${SOURCE}
24 rsrc.rc
25 ${CMAKE_CURRENT_BINARY_DIR}/winhttp.def)
26
27 set_module_type(winhttp win32dll)
28 target_link_libraries(winhttp uuid wine)
29 add_delay_importlibs(winhttp oleaut32 ole32 crypt32 secur32)
30 add_importlibs(winhttp user32 advapi32 ws2_32 jsproxy msvcrt kernel32 ntdll)
31 add_dependencies(winhttp stdole2) # wininet_tlb.tlb needs stdole2.tlb
32 add_pch(winhttp winhttp_private.h SOURCE)
33 add_cd_file(TARGET winhttp DESTINATION reactos/system32 FOR all)