[CMAKE]
[reactos.git] / dll / win32 / msacm32 / msacm32.drv / CMakeLists.txt
1
2 set_unicode()
3
4 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
5
6 add_custom_command(
7 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/msacm32.drv.def
8 COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/msacm32.drv.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/msacm32.drv.spec --filename msacm32.drv
9 DEPENDS native-winebuild)
10 set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/msacm32.drv.def PROPERTIES GENERATED TRUE)
11 add_custom_target(msacm32.drv_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/msacm32.drv.def)
12
13 add_library(msacm32.drv SHARED wavemap.c wavemap.rc)
14
15 set_entrypoint(msacm32.drv 0)
16 set_target_properties(msacm32.drv PROPERTIES SUFFIX "")
17
18 target_link_libraries(msacm32.drv
19 ${CMAKE_CURRENT_BINARY_DIR}/msacm32.drv.def
20 wine)
21
22 add_importlibs(msacm32.drv msacm32 user32 winmm advapi32 kernel32 ntdll)
23 add_dependencies(msacm32.drv psdk buildno_header)
24 add_cab_target(msacm32.drv 1)