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