[CMAKE]
[reactos.git] / dll / keyboard / kbdgerg / CMakeLists.txt
index d6df560..f2af220 100644 (file)
@@ -1,12 +1,12 @@
 
 include_directories(${REACTOS_SOURCE_DIR}/ntoskrnl/include)
 
-spec2def(kbdgerg ${CMAKE_CURRENT_SOURCE_DIR}/kbdgerg.spec ${CMAKE_CURRENT_BINARY_DIR}/kbdgerg.def)
+spec2def(kbdgerg.dll kbdgerg.spec)
 
-add_library(kbdgerg SHARED kbdgerg.c kbdgerg.rc)
+add_library(kbdgerg SHARED kbdgerg.c kbdgerg.rc ${CMAKE_CURRENT_BINARY_DIR}/kbdgerg.def)
 
 set_entrypoint(kbdgerg 0)
 
-target_link_libraries(kbdgerg ${CMAKE_CURRENT_BINARY_DIR}/kbdgerg.def)
 
-add_dependencies(kbdgerg kbdgerg_def psdk buildno_header)
+
+add_dependencies(kbdgerg psdk buildno_header)