[CMAKE]
[reactos.git] / dll / win32 / cabinet / CMakeLists.txt
index a57785f..39a7aee 100644 (file)
@@ -3,21 +3,24 @@ add_definitions(-D__WINESRC__)
 
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
-spec2def(cabinet ${CMAKE_CURRENT_SOURCE_DIR}/cabinet.spec ${CMAKE_CURRENT_BINARY_DIR}/cabinet.def)
+spec2def(cabinet.dll cabinet.spec)
 
 list(APPEND SOURCE
     cabinet_main.c
     fci.c
     fdi.c
-    cabinet.rc)
+    stubs.c
+    cabinet.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/cabinet.def)
 
 add_library(cabinet SHARED ${SOURCE})
 
 set_entrypoint(cabinet 0)
 
-target_link_libraries(cabinet
-    ${CMAKE_CURRENT_BINARY_DIR}/cabinet.def
-    wine)
+target_link_libraries(cabinet wine)
 
 add_importlibs(cabinet kernel32 ntdll)
-add_dependencies(cabinet cabinet_def psdk buildno_header)
+add_importlib_target(cabinet.spec)
+
+add_dependencies(cabinet psdk)
+add_cd_file(TARGET cabinet DESTINATION reactos/system32)