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