[MMDEVAPI] Sync with Wine Staging 3.3. CORE-14434
[reactos.git] / dll / win32 / mmdevapi / CMakeLists.txt
1
2 remove_definitions(-D_WIN32_WINNT=0x502)
3 add_definitions(-D_WIN32_WINNT=0x600)
4
5 add_definitions(-D__WINESRC__)
6 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
7 spec2def(mmdevapi.dll mmdevapi.spec ADD_IMPORTLIB)
8
9 list(APPEND SOURCE
10 audiovolume.c
11 devenum.c
12 main.c
13 precomp.h
14 ${CMAKE_CURRENT_BINARY_DIR}/mmdevapi_stubs.c)
15
16 add_library(mmdevapi SHARED
17 ${SOURCE}
18 guid.c
19 mmdevapi.rc
20 ${CMAKE_CURRENT_BINARY_DIR}/mmdevapi.def)
21
22 set_module_type(mmdevapi win32dll)
23 target_link_libraries(mmdevapi uuid wine)
24 add_importlibs(mmdevapi ole32 oleaut32 user32 advapi32 msvcrt kernel32 ntdll)
25 add_pch(mmdevapi precomp.h SOURCE)
26 add_dependencies(mmdevapi dxsdk)
27 add_cd_file(TARGET mmdevapi DESTINATION reactos/system32 FOR all)