[CMAKE]
[reactos.git] / dll / win32 / mciavi32 / CMakeLists.txt
index 49f2df7..60e2dda 100644 (file)
@@ -2,21 +2,20 @@
 add_definitions(-D__WINESRC__)
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
-spec2def(mciavi32 ${CMAKE_CURRENT_SOURCE_DIR}/mciavi32.spec ${CMAKE_CURRENT_BINARY_DIR}/mciavi32.def)
+spec2def(mciavi32.dll mciavi32.spec)
 
 add_library(mciavi32 SHARED
     info.c
     mciavi.c
     mmoutput.c
     wnd.c
-    mciavi_res.rc)
+    mciavi_res.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/mciavi32.def)
 
 set_module_type(mciavi32 win32dll)
 
-target_link_libraries(mciavi32
-    ${CMAKE_CURRENT_BINARY_DIR}/mciavi32.def
-    wine)
+target_link_libraries(mciavi32 wine)
 
 add_importlibs(mciavi32 msvfw32 winmm user32 gdi32 kernel32 ntdll)
-add_dependencies(mciavi32 mciavi32_def)
+
 add_cab_target(mciavi32 1)