Synchronize with trunk r58606.
[reactos.git] / dll / win32 / wuapi / CMakeLists.txt
1
2 add_typelib(wuapi_tlb.idl)
3
4 add_definitions(
5 -D__WINESRC__
6 -DCOM_NO_WINDOWS_H)
7
8 remove_definitions(-D_WIN32_WINNT=0x502)
9 add_definitions(-D_WIN32_WINNT=0x600)
10
11 include_directories(
12 ${REACTOS_SOURCE_DIR}/include/reactos/wine)
13
14
15 spec2def(wuapi.dll wuapi.spec)
16
17 list(APPEND SOURCE
18 downloader.c
19 installer.c
20 main.c
21 searcher.c
22 session.c
23 systeminfo.c
24 updates.c
25 wuapi.rc
26 ${CMAKE_CURRENT_BINARY_DIR}/wuapi.def)
27
28 set_source_files_properties(wuapi.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/wuapi_tlb.tlb)
29
30 add_library(wuapi SHARED ${SOURCE})
31
32 set_module_type(wuapi win32dll)
33 target_link_libraries(wuapi uuid wine wuguid)
34 add_importlibs(wuapi ole32 advapi32 msvcrt kernel32 ntdll)
35
36 # wuapi_tlb.tlb needs stdole2.tlb
37 add_dependencies(wuapi stdole2)
38
39 add_cd_file(TARGET wuapi DESTINATION reactos/system32 FOR all)