91593c059a41917ff22f98609f284ad3320f9b25
[reactos.git] / dll / win32 / msadp32.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}/msadp32.acm.def
9 COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/msadp32.acm.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/msadp32.acm.spec --filename msadp32.acm
10 DEPENDS native-winebuild)
11 set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/msadp32.acm.def PROPERTIES GENERATED TRUE)
12 add_custom_target(msadp32.acm_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/msadp32.acm.def)
13
14 add_library(msadp32.acm SHARED msadp32.c)
15
16 set_entrypoint(msadp32.acm 0)
17 set_target_properties(msadp32.acm PROPERTIES SUFFIX "")
18
19 target_link_libraries(msadp32.acm
20 ${CMAKE_CURRENT_BINARY_DIR}/msadp32.acm.def
21 wine)
22
23 add_importlibs(msadp32.acm winmm user32 msvcrt kernel32 ntdll)
24 add_dependencies(msadp32.acm msadp32.acm_def psdk buildno_header)
25 add_livecd_target(msadp32.acm reactos/system32)