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