[CMAKE]
[reactos.git] / dll / win32 / hid / CMakeLists.txt
index 378f5e6..343bcc1 100644 (file)
@@ -1,9 +1,13 @@
 
 set_unicode()
 
-list(APPEND SOURCE hid.c stubs.c hid.rc)
+list(APPEND SOURCE
+    hid.c
+    stubs.c
+    hid.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/hid.def)
 
-spec2def(hid ${CMAKE_CURRENT_SOURCE_DIR}/hid.spec ${CMAKE_CURRENT_BINARY_DIR}/hid.def)
+spec2def(hid.dll hid.spec)
 
 add_library(hid SHARED
     ${CMAKE_CURRENT_BINARY_DIR}/hid_precomp.h.gch
@@ -11,9 +15,9 @@ add_library(hid SHARED
 
 set_module_type(hid win32dll)
 
-target_link_libraries(hid ${CMAKE_CURRENT_BINARY_DIR}/hid.def)
+
 
 add_importlibs(hid kernel32 ntdll)
 add_pch(hid ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
-add_dependencies(hid hid_def)
+
 add_cab_target(hid 1)