2 add_definitions(-D_DLL -D__USE_CRTIMP)
3 add_definitions(-D__WINESRC__)
5 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
8 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/msgsm32.acm.def
9 COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/msgsm32.acm.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/msgsm32.acm.spec --filename msgsm32.acm
10 DEPENDS native-winebuild)
11 set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/msgsm32.acm.def PROPERTIES GENERATED TRUE)
12 add_custom_target(msgsm32.acm_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/msgsm32.acm.def)
14 add_library(msgsm32.acm SHARED msgsm32.c)
16 set_entrypoint(msgsm32.acm 0)
17 set_target_properties(msgsm32.acm PROPERTIES SUFFIX "")
19 target_link_libraries(msgsm32.acm
20 ${CMAKE_CURRENT_BINARY_DIR}/msgsm32.acm.def
23 add_importlibs(msgsm32.acm winmm user32 msvcrt kernel32 ntdll)
24 add_dependencies(msgsm32.acm msgsm32.acm_def psdk buildno_header)