[DEVENUM] Sync with Wine Staging 3.9. CORE-14656
[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 add_idl_headers(devenum_fil_data_header fil_data.idl)
8 spec2def(devenum.dll devenum.spec)
9
10 list(APPEND SOURCE
11 createdevenum.c
12 devenum_main.c
13 factory.c
14 mediacatenum.c
15 parsedisplayname.c
16 precomp.h)
17
18 add_library(devenum SHARED
19 ${SOURCE}
20 devenum.rc
21 ${CMAKE_CURRENT_BINARY_DIR}/devenum.def)
22
23 set_source_files_properties(devenum.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/devenum_classes.rgs)
24 set_module_type(devenum win32dll UNICODE)
25 target_link_libraries(devenum strmiids uuid wine)
26 add_delay_importlibs(devenum msvfw32)
27 add_importlibs(devenum advapi32 advapi32_vista ole32 oleaut32 winmm user32 avicap32 msacm32 dsound msvcrt kernel32 ntdll)
28 add_dependencies(devenum devenum_fil_data_header)
29 add_pch(devenum precomp.h SOURCE)
30 add_cd_file(TARGET devenum DESTINATION reactos/system32 FOR all)