[CMAKE]
[reactos.git] / dll / win32 / msgsm32.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}/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)
13
14 add_library(msgsm32.acm SHARED msgsm32.c)
15
16 set_entrypoint(msgsm32.acm 0)
17 set_target_properties(msgsm32.acm PROPERTIES SUFFIX "")
18
19 target_link_libraries(msgsm32.acm
20 ${CMAKE_CURRENT_BINARY_DIR}/msgsm32.acm.def
21 wine)
22
23 add_importlibs(msgsm32.acm winmm user32 msvcrt kernel32 ntdll)
24 add_dependencies(msgsm32.acm psdk buildno_header)
25 add_cab_target(msgsm32.acm 1)