[DEVENUM] Sync with Wine Staging 4.18. CORE-16441
[reactos.git] / dll / directx / wine / devenum / CMakeLists.txt
1
2 remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502)
3 add_definitions(-D_WIN32_WINNT=0x600 -DWINVER=0x600)
4
5 add_definitions(-D__WINESRC__)
6 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
7 spec2def(devenum.dll devenum.spec)
8
9 list(APPEND SOURCE
10 createdevenum.c
11 devenum_main.c
12 mediacatenum.c
13 parsedisplayname.c
14 precomp.h)
15
16 add_library(devenum MODULE
17 ${SOURCE}
18 devenum.rc
19 ${CMAKE_CURRENT_BINARY_DIR}/devenum.def)
20
21 set_source_files_properties(devenum.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/devenum_classes.rgs)
22 set_module_type(devenum win32dll UNICODE)
23 target_link_libraries(devenum strmiids uuid wine)
24 add_delay_importlibs(devenum msvfw32)
25 add_importlibs(devenum advapi32 advapi32_vista ole32 oleaut32 winmm user32 avicap32 msacm32 dsound msdmo msvcrt kernel32 ntdll)
26 add_dependencies(devenum wineheaders)
27 add_pch(devenum precomp.h SOURCE)
28 add_cd_file(TARGET devenum DESTINATION reactos/system32 FOR all)