da75d7ca676483356dde40e93bd16eeb4eb3b63b
[reactos.git] / dll / win32 / wininet / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__ -D_WINE)
3 add_definitions(-Dclose=_close)
4
5 include_directories(
6 ${REACTOS_SOURCE_DIR}/include/reactos/wine
7 ${REACTOS_SOURCE_DIR}/lib/3rdparty/zlib)
8
9 spec2def(wininet ${CMAKE_CURRENT_SOURCE_DIR}/wininet.spec ${CMAKE_CURRENT_BINARY_DIR}/wininet.def)
10
11 set_rc_compiler()
12
13 add_library(wininet SHARED
14 cookie.c
15 dialogs.c
16 ftp.c
17 gopher.c
18 http.c
19 internet.c
20 netconnection.c
21 urlcache.c
22 utility.c
23 wininet_main.c
24 rsrc.rc
25 version.rc)
26
27 set_module_type(wininet win32dll)
28
29 target_link_libraries(wininet
30 ${CMAKE_CURRENT_BINARY_DIR}/wininet.def
31 wine
32 zlib
33 pseh)
34
35 add_importlibs(wininet mpr shlwapi shell32 user32 advapi32 secur32 crypt32 ws2_32 msvcrt kernel32 ntdll)
36 add_dependencies(wininet wininet_def)