[CMAKE]
[reactos.git] / dll / win32 / pidgen / CMakeLists.txt
index 030d722..e175a58 100644 (file)
@@ -2,9 +2,16 @@
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 add_definitions(-D__WINESRC__)
 
+set_rc_compiler()
 spec2def(pidgen.dll pidgen.spec)
 
-add_library(pidgen SHARED main.c rsrc.rc ${CMAKE_CURRENT_BINARY_DIR}/pidgen.def)
+list(APPEND SOURCE
+    main.c
+    rsrc.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/pidgen_stubs.c
+    ${CMAKE_CURRENT_BINARY_DIR}/pidgen.def)
+
+add_library(pidgen SHARED ${SOURCE})
 
 set_module_type(pidgen win32dll)
 
@@ -12,4 +19,4 @@ target_link_libraries(pidgen wine)
 
 add_importlibs(pidgen msvcrt kernel32 ntdll)
 
-add_cab_target(pidgen 1)
+add_cd_file(TARGET pidgen DESTINATION reactos/system32 FOR all)