[CMAKE]
[reactos.git] / dll / directx / wine / ddraw / CMakeLists.txt
index 86318f7..93a002e 100644 (file)
@@ -19,7 +19,8 @@ list(APPEND SOURCE
     vertexbuffer.c
     viewport.c
     version.rc
-    ddraw.def)
+    ${CMAKE_CURRENT_BINARY_DIR}/ddraw_stubs.c
+    ${CMAKE_CURRENT_BINARY_DIR}/ddraw.def)
 
 add_definitions(
     -D__WINESRC__
@@ -34,7 +35,6 @@ add_library(ddraw SHARED ${SOURCE})
 set_module_type(ddraw win32dll)
 
 target_link_libraries(ddraw
-    ${CMAKE_CURRENT_BINARY_DIR}/ddraw.def
     wine
     uuid
     dxguid
@@ -49,4 +49,7 @@ add_importlibs(ddraw
     msvcrt
     kernel32
     ntdll)
-    
\ No newline at end of file
+
+add_dependencies(ddraw wineheaders)
+add_cab_target(ddraw 1)
+add_importlib_target(ddraw.spec)