[CONSRV] Fix for console windows shrinking on Minimize and Restore (#2014)
[reactos.git] / dll / win32 / wininet / CMakeLists.txt
1
2 remove_definitions(-DWINVER=0x502)
3 add_definitions(-DWINVER=0x600)
4
5 add_definitions(
6 -D__WINESRC__
7 -D_WINE
8 -Dclose=_close)
9
10 include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine
11 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
12
13 spec2def(wininet.dll wininet.spec ADD_IMPORTLIB)
14
15 list(APPEND SOURCE
16 cookie.c
17 dialogs.c
18 ftp.c
19 gopher.c
20 http.c
21 internet.c
22 netconnection.c
23 urlcache.c
24 utility.c
25 precomp.h)
26
27 add_library(wininet MODULE
28 ${SOURCE}
29 rsrc.rc
30 ${CMAKE_CURRENT_BINARY_DIR}/wininet_stubs.c
31 ${CMAKE_CURRENT_BINARY_DIR}/wininet.def)
32
33 set_module_type(wininet win32dll)
34 target_link_libraries(wininet wine ${PSEH_LIB} zlib)
35 add_delay_importlibs(wininet secur32 crypt32 cryptui)
36 add_importlibs(wininet mpr shlwapi shell32 user32 advapi32 ws2_32 normaliz kernel32_vista msvcrt kernel32 ntdll)
37 add_pch(wininet precomp.h SOURCE)
38 add_cd_file(TARGET wininet DESTINATION reactos/system32 FOR all)