[CMAKE]
[reactos.git] / base / applications / kbswitch / kbsdll / CMakeLists.txt
index 68810c1..1f51b60 100644 (file)
@@ -1,14 +1,15 @@
 
 set_unicode()
 
-add_library(kbsdll SHARED kbsdll.c kbsdll.rc)
+spec2def(kbsdll.dll kbsdll.spec)
 
-spec2def(kbsdll ${CMAKE_CURRENT_SOURCE_DIR}/kbsdll.spec ${CMAKE_CURRENT_BINARY_DIR}/kbsdll.def)
+list(APPEND SOURCE
+    kbsdll.c
+    kbsdll.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/kbsdll.def)
 
-target_link_libraries(kbsdll ${CMAKE_CURRENT_BINARY_DIR}/kbsdll.def)
+add_library(kbsdll SHARED ${SOURCE})
 
 set_module_type(kbsdll win32dll)
-add_importlibs(kbsdll user32 comctl32 kernel32)
-
-add_dependencies(kbsdll kbsdll_def)
-add_cab_target(kbsdll 1)
+add_importlibs(kbsdll user32 comctl32 kernel32 msvcrt)
+add_cd_file(TARGET kbsdll DESTINATION reactos/system32 FOR all)