25f8b27c4b024a2067c2e63e35c413311046325f
[reactos.git] / dll / win32 / msg711.acm / CMakeLists.txt
1
2 add_definitions(-D_DLL -D__USE_CRTIMP)
3 add_definitions(-D__WINESRC__)
4
5 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
6
7 add_custom_command(
8 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/msg711.acm.def
9 COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/msg711.acm.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/msg711.acm.spec --filename msg711.acm
10 DEPENDS native-winebuild)
11 set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/msg711.acm.def PROPERTIES GENERATED TRUE)
12 add_custom_target(msg711.acm_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/msg711.acm.def)
13
14 add_library(msg711.acm SHARED msg711.c)
15
16 set_entrypoint(msg711.acm 0)
17 set_target_properties(msg711.acm PROPERTIES SUFFIX "")
18
19 target_link_libraries(msg711.acm
20 ${CMAKE_CURRENT_BINARY_DIR}/msg711.acm.def
21 wine)
22
23 add_importlibs(msg711.acm winmm user32 msvcrt kernel32 ntdll)
24 add_dependencies(msg711.acm msg711.acm_def psdk buildno_header)
25 add_livecd_target(msg711.acm reactos/system32)