b5da9339fd1ee1ed0f9299d3ebcabba68159e520
[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
26 add_importlibs(wuapi uuid ole32 advapi32 kernel32 ntdll)
27 add_dependencies(wuapi wuapi_def psdk buildno_header)