add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-add_library(winhttp SHARED
+spec2def(winhttp.dll winhttp.spec)
+
+list(APPEND SOURCE
cookie.c
handle.c
main.c
request.c
session.c
url.c
- winhttp.def)
+ ${CMAKE_CURRENT_BINARY_DIR}/winhttp.def)
-if(NOT MSVC)
- set_source_files_properties(winhttp.def PROPERTIES EXTERNAL_OBJECT TRUE)
-endif()
+add_library(winhttp SHARED ${SOURCE})
set_module_type(winhttp win32dll)
-
target_link_libraries(winhttp wine)
-
add_importlibs(winhttp shlwapi wininet ws2_32 msvcrt crypt32 advapi32 kernel32 ntdll)
-
-add_cab_target(winhttp 1)
+add_importlib_target(winhttp.spec)
+add_cd_file(TARGET winhttp DESTINATION reactos/system32 FOR all)