Synchronize with trunk.
[reactos.git] / dll / win32 / wbemprox / CMakeLists.txt
1
2 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
3 add_definitions(-D__WINESRC__)
4
5 remove_definitions(-D_WIN32_WINNT=0x502)
6 add_definitions(-D_WIN32_WINNT=0x600)
7
8 spec2def(wbemprox.dll wbemprox.spec)
9
10 list(APPEND SOURCE
11 builtin.c
12 class.c
13 main.c
14 process.c
15 qualifier.c
16 query.c
17 reg.c
18 service.c
19 services.c
20 table.c
21 wbemlocator.c
22 wql.tab.c
23 ${CMAKE_CURRENT_BINARY_DIR}/wbemprox.def)
24
25 add_library(wbemprox SHARED ${SOURCE} wbemprox.rc)
26
27 if(NOT MSVC)
28 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
29 #allow_warnings(wbemprox)
30 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error")
31 endif()
32
33 set_source_files_properties(wbemprox.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/wbemprox.rgs)
34 set_module_type(wbemprox win32dll)
35 target_link_libraries(wbemprox wine)
36 add_importlibs(wbemprox iphlpapi dxgi oleaut32 ole32 advapi32 user32 gdi32 msvcrt kernel32 ntdll)
37 add_dependencies(wbemprox d3d_idl_headers)
38 add_cd_file(TARGET wbemprox DESTINATION reactos/system32/wbem FOR all)