[CMAKE]
[reactos.git] / dll / win32 / wuapi / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3
4 remove_definitions(-D_WIN32_WINNT=0x502)
5 add_definitions(-D_WIN32_WINNT=0x600)
6
7 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
8
9 spec2def(wuapi ${CMAKE_CURRENT_SOURCE_DIR}/wuapi.spec ${CMAKE_CURRENT_BINARY_DIR}/wuapi.def)
10
11 add_library(wuapi SHARED
12 downloader.c
13 installer.c
14 main.c
15 regsvr.c
16 searcher.c
17 session.c
18 updates.c)
19
20 set_module_type(wuapi win32dll)
21
22 target_link_libraries(wuapi
23 ${CMAKE_CURRENT_BINARY_DIR}/wuapi.def
24 wine
25 uuid)
26
27 add_importlibs(wuapi ole32 advapi32 kernel32 ntdll)
28 add_dependencies(wuapi wuapi_def)
29 add_cab_target(wuapi 1)