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