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