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