Sync with trunk r63174.
[reactos.git] / dll / win32 / winspool / CMakeLists.txt
index d3c7fa4..c63d8bb 100644 (file)
@@ -1,21 +1,21 @@
 
-set_unicode()
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
+spec2def(winspool.drv winspool.spec ADD_IMPORTLIB)
 
-add_library(winspool SHARED
+list(APPEND SOURCE
     info.c
     stubs.c
-    winspool_winspool.stubs.c
-    winspool.rc)
-
-set_target_properties(winspool PROPERTIES SUFFIX ".drv")
-set_module_type(winspool win32dll)
+    precomp.h)
 
-target_link_libraries(winspool
-    ${CMAKE_CURRENT_SOURCE_DIR}/winspool_winspool.auto.def
-    wine)
+add_library(winspool.drv SHARED
+    ${SOURCE}
+    winspool.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/winspool_stubs.c
+    ${CMAKE_CURRENT_BINARY_DIR}/winspool.def)
 
-add_importlibs(winspool advapi32 shlwapi kernel32 ntdll)
-add_dependencies(winspool winspool_def)
-add_livecd_target(winspool reactos/system32)
+set_target_properties(winspool.drv PROPERTIES SUFFIX "")
+set_module_type(winspool.drv win32dll UNICODE)
+target_link_libraries(winspool.drv wine)
+add_importlibs(winspool.drv advapi32 shlwapi msvcrt kernel32 ntdll)
+add_pch(winspool.drv precomp.h SOURCE)
+add_cd_file(TARGET winspool.drv DESTINATION reactos/system32 FOR all)