xref: /reactos/dll/win32/wbemprox/CMakeLists.txt (revision 1734f297)
1
2remove_definitions(-D_WIN32_WINNT=0x502)
3add_definitions(-D_WIN32_WINNT=0x600)
4
5add_definitions(-D__WINESRC__ -D__ROS_LONG64__)
6include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
7spec2def(wbemprox.dll wbemprox.spec)
8
9list(APPEND SOURCE
10    builtin.c
11    class.c
12    main.c
13    process.c
14    qualifier.c
15    query.c
16    reg.c
17    security.c
18    service.c
19    services.c
20    table.c
21    wbemlocator.c)
22
23BISON_TARGET(wql wql.y ${CMAKE_CURRENT_BINARY_DIR}/wql.tab.c COMPILE_FLAGS "-p wql_")
24
25list(APPEND PCH_SKIP_SOURCE
26    guid.c
27    ${BISON_wql_OUTPUTS})
28
29add_library(wbemprox MODULE
30    ${SOURCE}
31    ${PCH_SKIP_SOURCE}
32    wbemprox.rc
33    ${CMAKE_CURRENT_BINARY_DIR}/wbemprox.def)
34
35set_source_files_properties(wbemprox.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/wbemprox.rgs)
36set_module_type(wbemprox win32dll)
37target_link_libraries(wbemprox uuid wine)
38add_importlibs(wbemprox iphlpapi oleaut32 advapi32 user32 gdi32 version winspool ws2_32 rpcrt4 setupapi msvcrt kernel32 ntdll)
39add_dependencies(wbemprox d3d_idl_headers)
40add_pch(wbemprox precomp.h "${PCH_SKIP_SOURCE}")
41add_cd_file(TARGET wbemprox DESTINATION reactos/system32/wbem FOR all)
42