[CMAKE]
[reactos.git] / dll / win32 / msadp32.acm / CMakeLists.txt
index 6d05321..c9a9deb 100644 (file)
@@ -4,21 +4,15 @@ add_definitions(-D__WINESRC__)
 
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
-add_custom_command(
-    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/msadp32.acm.def
-    COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/msadp32.acm.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/msadp32.acm.spec --filename msadp32.acm
-    DEPENDS native-winebuild)
-set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/msadp32.acm.def PROPERTIES GENERATED TRUE)
-add_custom_target(msadp32.acm_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/msadp32.acm.def)
+spec2def(msadp32.acm msadp32.acm.spec)
 
-add_library(msadp32.acm SHARED msadp32.c)
+add_library(msadp32.acm SHARED msadp32.c
+    ${CMAKE_CURRENT_BINARY_DIR}/msadp32.def)
 
 set_entrypoint(msadp32.acm 0)
 set_target_properties(msadp32.acm PROPERTIES SUFFIX "")
 
-target_link_libraries(msadp32.acm
-    ${CMAKE_CURRENT_BINARY_DIR}/msadp32.acm.def
-    wine)
+target_link_libraries(msadp32.acm wine)
 
 add_importlibs(msadp32.acm winmm user32 msvcrt kernel32 ntdll)
 add_dependencies(msadp32.acm psdk buildno_header)