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