[CMAKE]
[reactos.git] / dll / shellext / deskadp / CMakeLists.txt
index 8a6ee6e..0ed62d8 100644 (file)
@@ -1,27 +1,29 @@
 
 set_unicode()
 
-spec2def(deskadp ${CMAKE_CURRENT_SOURCE_DIR}/deskadp.spec ${CMAKE_CURRENT_BINARY_DIR}/deskadp.def)
+spec2def(deskadp.dll deskadp.spec)
 
 list(APPEND SOURCE
     deskadp.c
     shxiface.c
-    deskadp.rc)
+    deskadp.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/deskadp.def)
 
 add_library(deskadp SHARED ${CMAKE_CURRENT_BINARY_DIR}/deskadp_precomp.h.gch ${SOURCE})
 
 set_module_type(deskadp win32dll)
 
-target_link_libraries(deskadp ${CMAKE_CURRENT_BINARY_DIR}/deskadp.def uuid)
+target_link_libraries(deskadp uuid)
 
 add_importlibs(deskadp
     user32
     gdi32
     comctl32
     ole32
+    msvcrt
     kernel32
     ntdll)
 
 add_pch(deskadp ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
-add_dependencies(deskadp deskadp_def)
-add_livecd_target(deskadp reactos/system32)
+
+add_cab_target(deskadp 1)