[CMAKE]
[reactos.git] / dll / win32 / msacm32 / CMakeLists.txt
1
2 set_unicode()
3
4 add_definitions(-D_DLL -D__USE_CRTIMP)
5 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
6
7 set_rc_compiler()
8
9 spec2def(msacm32.dll msacm32.spec)
10
11 list(APPEND SOURCE
12 driver.c
13 filter.c
14 format.c
15 internal.c
16 msacm32_main.c
17 pcmconverter.c
18 stream.c
19 ${CMAKE_CURRENT_BINARY_DIR}/msacm32_stubs.c
20 ${CMAKE_CURRENT_BINARY_DIR}/msacm32.def)
21
22 add_library(msacm32 SHARED ${SOURCE})
23
24 set_entrypoint(msacm32 DllMain@12)
25 set_image_base(msacm32 ${baseaddress_msacm32})
26
27 target_link_libraries(msacm32 wine)
28 add_importlibs(msacm32 msvcrt advapi32 user32 winmm kernel32 ntdll)
29 add_dependencies(msacm32 psdk)
30
31 add_cd_file(TARGET msacm32 DESTINATION reactos/system32 FOR all)
32 add_importlib_target(msacm32.spec)
33
34 add_subdirectory(msacm32.drv)