[CMAKE]
[reactos.git] / dll / directx / wine / d3d8 / CMakeLists.txt
index cc339c4..570fd18 100644 (file)
@@ -5,7 +5,7 @@ add_definitions(-D__WINESRC__)
 add_definitions(-DUSE_WIN32_OPENGL)
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
-spec2def(d3d8 ${CMAKE_CURRENT_SOURCE_DIR}/d3d8.spec ${CMAKE_CURRENT_BINARY_DIR}/d3d8.def)
+spec2def(d3d8.dll d3d8.spec)
 
 add_library(d3d8 SHARED
     cubetexture.c
@@ -22,12 +22,12 @@ add_library(d3d8 SHARED
     vertexshader.c
     volume.c
     volumetexture.c
-    version.rc)
+    version.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/d3d8.def)
 
 set_module_type(d3d8 win32dll)
 
 target_link_libraries(d3d8
-    ${CMAKE_CURRENT_BINARY_DIR}/d3d8.def
     uuid
     wine)
 
@@ -37,5 +37,5 @@ add_importlibs(d3d8
     advapi32
     wined3d)
 
-add_dependencies(d3d8 d3d8_def wineheaders)
+add_dependencies(d3d8 wineheaders)
 add_cab_target(d3d8 1)