[CMAKE]
[reactos.git] / drivers / directx / dxapi / CMakeLists.txt
index d004d2a..400224e 100644 (file)
@@ -1,12 +1,12 @@
 
 add_definitions(-D_DXAPI_)
 
-spec2def(dxapi ${CMAKE_CURRENT_SOURCE_DIR}/dxapi.spec ${CMAKE_CURRENT_BINARY_DIR}/dxapi.def)
+spec2def(dxapi.sys dxapi.spec)
 
-add_library(dxapi SHARED main.c dxapi.rc)
+add_library(dxapi SHARED main.c dxapi.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/dxapi.def)
 
 set_target_properties(dxapi PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native" SUFFIX ".sys")
 
-target_link_libraries(dxapi ${CMAKE_CURRENT_BINARY_DIR}/dxapi.def)
 add_importlibs(dxapi ntoskrnl hal videoprt)
-add_dependencies(dxapi dxapi_def psdk bugcodes)
+add_dependencies(dxapi psdk bugcodes)