[CMAKE]
authorSylvain Petreolle <spetreolle@yahoo.fr>
Tue, 30 Nov 2010 20:57:01 +0000 (20:57 +0000)
committerSylvain Petreolle <spetreolle@yahoo.fr>
Tue, 30 Nov 2010 20:57:01 +0000 (20:57 +0000)
Stubs: Fix some win32 modules.

svn path=/branches/cmake-bringup/; revision=49876

39 files changed:
dll/win32/atl/CMakeLists.txt
dll/win32/dbghelp/CMakeLists.txt
dll/win32/mssign32/CMakeLists.txt
dll/win32/mssip32/CMakeLists.txt
dll/win32/msvfw32/CMakeLists.txt
dll/win32/netapi32/CMakeLists.txt
dll/win32/netcfgx/CMakeLists.txt
dll/win32/netshell/CMakeLists.txt
dll/win32/newdev/CMakeLists.txt
dll/win32/ntlanman/CMakeLists.txt
dll/win32/ntprint/CMakeLists.txt
dll/win32/odbc32/CMakeLists.txt
dll/win32/olesvr32/CMakeLists.txt
dll/win32/olethk32/CMakeLists.txt
dll/win32/pidgen/CMakeLists.txt
dll/win32/printui/CMakeLists.txt
dll/win32/pstorec/CMakeLists.txt
dll/win32/rasadhlp/CMakeLists.txt
dll/win32/rasdlg/CMakeLists.txt
dll/win32/rasman/CMakeLists.txt
dll/win32/resutils/CMakeLists.txt
dll/win32/samlib/CMakeLists.txt
dll/win32/sccbase/CMakeLists.txt
dll/win32/schannel/CMakeLists.txt
dll/win32/setupapi/CMakeLists.txt
dll/win32/sfc/CMakeLists.txt
dll/win32/shimgvw/CMakeLists.txt
dll/win32/slbcsp/CMakeLists.txt
dll/win32/url/CMakeLists.txt
dll/win32/usp10/CMakeLists.txt
dll/win32/uxtheme/CMakeLists.txt
dll/win32/windowscodecs/CMakeLists.txt
dll/win32/wininet/CMakeLists.txt
dll/win32/winspool/CMakeLists.txt
dll/win32/wintrust/CMakeLists.txt
dll/win32/wlanapi/CMakeLists.txt
dll/win32/wldap32/CMakeLists.txt
dll/win32/wtsapi32/CMakeLists.txt
dll/win32/xmllite/CMakeLists.txt

index 172e115..a6f8fea 100644 (file)
@@ -1,6 +1,3 @@
-
-ADD_INTERFACE_DEFINITIONS(atl_atliface_header atliface.idl)
-
 add_definitions(-D__WINESRC__)
 
 remove_definitions(-D_WIN32_WINNT=0x502)
@@ -8,15 +5,20 @@ add_definitions(-D_WIN32_WINNT=0x600)
 
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
+ADD_INTERFACE_DEFINITIONS(atl_atliface_header atliface.idl)
+
+set_rc_compiler()
 spec2def(atl.dll atl.spec)
 
-add_library(atl SHARED
+list(APPEND SOURCE
     atl_ax.c
     atl_main.c
     registrar.c
     rsrc.rc
     ${CMAKE_CURRENT_BINARY_DIR}/atl.def)
 
+add_library(atl SHARED ${SOURCE})
+
 set_module_type(atl win32dll)
 
 target_link_libraries(atl
index a148132..ae31426 100644 (file)
@@ -13,9 +13,10 @@ endif(ARCH MATCHES amd64)
 
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
+set_rc_compiler()
 spec2def(dbghelp.dll dbghelp.spec)
 
-add_library(dbghelp SHARED
+list(APPEND SOURCE
     coff.c
     cpu_i386.c
     cpu_ppc.c
@@ -42,6 +43,8 @@ add_library(dbghelp SHARED
     version.rc
     ${CMAKE_CURRENT_BINARY_DIR}/dbghelp.def)
 
+add_library(dbghelp SHARED ${SOURCE})
+
 set_module_type(dbghelp win32dll)
 
 target_link_libraries(dbghelp
index 2667dcd..eeb0107 100644 (file)
@@ -4,7 +4,11 @@ add_definitions(-D__WINESRC__)
 
 spec2def(mssign32.dll mssign32.spec)
 
-add_library(mssign32 SHARED mssign32_main.c ${CMAKE_CURRENT_BINARY_DIR}/mssign32.def)
+list(APPEND SOURCE
+    mssign32_main.c
+    ${CMAKE_CURRENT_BINARY_DIR}/mssign32.def)
+
+add_library(mssign32 SHARED ${SOURCE})
 
 set_module_type(mssign32 win32dll)
 
index ae72100..7295e9d 100644 (file)
@@ -4,7 +4,11 @@ add_definitions(-D__WINESRC__)
 
 spec2def(mssip32.dll mssip32.spec)
 
-add_library(mssip32 SHARED main.c ${CMAKE_CURRENT_BINARY_DIR}/mssip32.def)
+list(APPEND SOURCE
+    main.c
+    ${CMAKE_CURRENT_BINARY_DIR}/mssip32.def)
+
+add_library(mssip32 SHARED ${SOURCE})
 
 set_module_type(mssip32 win32dll)
 
index 6b61dd7..e6a9006 100644 (file)
@@ -4,15 +4,18 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 add_definitions(-D__WINESRC__)
 add_definitions(-D_WINE)
 
+set_rc_compiler()
 spec2def(msvfw32.dll msvfw32.spec)
 
-add_library(msvfw32 SHARED
+list(APPEND SOURCE
     mciwnd.c
     msvideo_main.c
     drawdib.c
     rsrc.rc
     ${CMAKE_CURRENT_BINARY_DIR}/msvfw32.def)
 
+add_library(msvfw32 SHARED ${SOURCE})
+
 set_module_type(msvfw32 win32dll)
 
 target_link_libraries(msvfw32 wine)
index 2a31df9..33a6739 100644 (file)
@@ -4,7 +4,7 @@ add_definitions(-D__WINESRC__)
 
 spec2def(netapi32.dll netapi32.spec)
 
-add_library(netapi32 SHARED
+list(APPEND SOURCE
     access.c
     apibuf.c
     browsr.c
@@ -19,6 +19,8 @@ add_library(netapi32 SHARED
     wksta.c
     ${CMAKE_CURRENT_BINARY_DIR}/netapi32.def)
 
+add_library(netapi32 SHARED ${SOURCE})
+
 set_module_type(netapi32 win32dll)
 
 target_link_libraries(netapi32 wine)
index 0271a9b..0ca604c 100644 (file)
@@ -1,10 +1,10 @@
-
 remove_definitions(-D_WIN32_WINNT=0x502)
 add_definitions(-D_WIN32_WINNT=0x600)
 
+set_rc_compiler()
 spec2def(netcfgx.dll netcfgx.spec)
 
-add_library(netcfgx SHARED
+list(APPEND SOURCE
     netcfgx.c
     classfactory.c
     netcfg_iface.c
@@ -13,6 +13,8 @@ add_library(netcfgx SHARED
     netcfgx.rc
     ${CMAKE_CURRENT_BINARY_DIR}/netcfgx.def)
 
+add_library(netcfgx SHARED ${SOURCE})
+
 set_module_type(netcfgx win32dll)
 
 target_link_libraries(netcfgx
index e001c3c..974ba56 100644 (file)
@@ -1,8 +1,8 @@
-
 add_definitions(-D_NETSHELL_)
 remove_definitions(-D_WIN32_WINNT=0x502)
 add_definitions(-D_WIN32_WINNT=0x600)
 
+set_rc_compiler()
 spec2def(netshell.dll netshell.spec)
 
 list(APPEND SOURCE
@@ -38,7 +38,8 @@ add_importlibs(netshell
     setupapi
     ws2_32
     comctl32
-    kernel32)
+    kernel32
+    ntdll)
 
 add_pch(netshell ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
 
index eab9c8a..b19bedf 100644 (file)
@@ -3,13 +3,15 @@ set_unicode()
 
 spec2def(newdev.dll newdev.spec)
 
-add_library(newdev SHARED
+list(APPEND SOURCE
     newdev.c
     stubs.c
     wizard.c
     newdev.rc
     ${CMAKE_CURRENT_BINARY_DIR}/newdev.def)
 
+add_library(newdev SHARED ${SOURCE})
+
 set_module_type(newdev win32dll)
 
 target_link_libraries(newdev wine)
index 95d8365..8610a4d 100644 (file)
@@ -3,7 +3,12 @@ set_unicode()
 
 spec2def(ntlanman.dll ntlanman.spec)
 
-add_library(ntlanman SHARED ntlanman.c ntlanman.rc ${CMAKE_CURRENT_BINARY_DIR}/ntlanman.def)
+list(APPEND SOURCE
+    ntlanman.c
+    ntlanman.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/ntlanman.def)
+
+add_library(ntlanman SHARED ${SOURCE})
 
 set_module_type(ntlanman win32dll)
 
index e11a5ca..4671417 100644 (file)
@@ -1,10 +1,15 @@
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 add_definitions(-D__WINESRC__)
 
+set_rc_compiler()
 spec2def(ntprint.dll ntprint.spec)
 
-add_library(ntprint SHARED ntprint.c ntprint.rc ${CMAKE_CURRENT_BINARY_DIR}/ntprint.def)
+list(APPEND SOURCE
+    ntprint.c
+    ntprint.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/ntprint.def)
+
+add_library(ntprint SHARED ${SOURCE})
 
 set_module_type(ntprint win32dll)
 
index 0b18fdf..1f1f231 100644 (file)
@@ -6,7 +6,11 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
 spec2def(odbc32.dll odbc32.spec)
 
-add_library(odbc32 SHARED proxyodbc.c ${CMAKE_CURRENT_BINARY_DIR}/odbc32.def)
+list(APPEND SOURCE
+    proxyodbc.c
+    ${CMAKE_CURRENT_BINARY_DIR}/odbc32.def)
+
+add_library(odbc32 SHARED ${SOURCE})
 
 set_module_type(odbc32 win32dll)
 
index adbff53..1dc50f0 100644 (file)
@@ -4,9 +4,12 @@ add_definitions(-D__WINESRC__)
 
 spec2def(olesvr32.dll olesvr32.spec)
 
-add_library(olesvr32 SHARED olesvr_main.c
+list(APPEND SOURCE
+    olesvr_main.c
     ${CMAKE_CURRENT_BINARY_DIR}/olesvr32.def)
 
+add_library(olesvr32 SHARED ${SOURCE})
+
 set_entrypoint(olesvr32 0)
 
 target_link_libraries(olesvr32
index 2f0c2dd..8a3425f 100644 (file)
@@ -2,9 +2,15 @@
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 add_definitions(-D__WINESRC__)
 
+set_rc_compiler()
 spec2def(olethk32.dll olethk32.spec)
 
-add_library(olethk32 SHARED main.c version.rc ${CMAKE_CURRENT_BINARY_DIR}/olethk32.def)
+list(APPEND SOURCE
+    main.c
+    version.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/olethk32.def)
+
+add_library(olethk32 SHARED ${SOURCE})
 
 set_module_type(olethk32 win32dll)
 
index 030d722..c859525 100644 (file)
@@ -2,9 +2,15 @@
 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.def)
+
+add_library(pidgen SHARED ${SOURCE})
 
 set_module_type(pidgen win32dll)
 
index 1134891..8964a78 100644 (file)
@@ -2,11 +2,15 @@
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 add_definitions(-D__WINESRC__)
 
+set_rc_compiler()
 spec2def(printui.dll printui.spec)
 
-add_library(printui SHARED printui.c printui.rc
+list(APPEND SOURCE
+    printui.c
+    printui.rc
     ${CMAKE_CURRENT_BINARY_DIR}/printui.def)
 
+add_library(printui SHARED ${SOURCE})
 set_entrypoint(printui 0)
 
 target_link_libraries(printui wine)
index 4708491..f754c9f 100644 (file)
@@ -4,9 +4,15 @@ add_dependencies(pstorec_tlb stdole2)
 
 add_definitions(-D__WINESRC__)
 
+set_rc_compiler()
 spec2def(pstorec.dll pstorec.spec)
 
-add_library(pstorec SHARED pstorec.c rsrc.rc ${CMAKE_CURRENT_BINARY_DIR}/pstorec.def)
+list(APPEND SOURCE
+    pstorec.c
+    rsrc.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/pstorec.def)
+
+add_library(pstorec SHARED ${SOURCE})
 
 set_module_type(pstorec win32dll)
 
index 406db93..1e0c6d0 100644 (file)
@@ -3,12 +3,14 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/winsock)
 
 spec2def(rasadhlp.dll rasadhlp.spec)
 
-add_library(rasadhlp SHARED
+list(APPEND SOURCE
     autodial.c
     init.c
     winsock.c
     ${CMAKE_CURRENT_BINARY_DIR}/rasadhlp.def)
 
+add_library(rasadhlp SHARED ${SOURCE})
+
 set_module_type(rasadhlp win32dll)
 
 add_importlibs(rasadhlp ws2_32 msvcrt kernel32 ntdll)
index f6a93cd..cc51aaf 100644 (file)
@@ -1,7 +1,12 @@
 
 spec2def(rasdlg.dll rasdlg.spec)
 
-add_library(rasdlg SHARED rasdlg.c rasdlg.rc ${CMAKE_CURRENT_BINARY_DIR}/rasdlg.def)
+list(APPEND SOURCE
+    rasdlg.c
+    rasdlg.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/rasdlg.def)
+
+add_library(rasdlg SHARED ${SOURCE})
 
 set_module_type(rasdlg win32dll)
 
index 436357d..72f6f5e 100644 (file)
@@ -1,7 +1,12 @@
-
+set_rc_compiler()
 spec2def(rasman.dll rasman.spec)
 
-add_library(rasman SHARED rasman.c rasman.rc ${CMAKE_CURRENT_BINARY_DIR}/rasman.def)
+list(APPEND SOURCE
+    rasman.c
+    rasman.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/rasman.def)
+
+add_library(rasman SHARED ${SOURCE})
 
 set_module_type(rasman win32dll)
 
index 0cd9e9e..0e40471 100644 (file)
@@ -4,7 +4,11 @@ add_definitions(-D__WINESRC__)
 
 spec2def(resutils.dll resutils.spec)
 
-add_library(resutils SHARED resutils.c ${CMAKE_CURRENT_BINARY_DIR}/resutils.def)
+list(APPEND SOURCE
+    resutils.c
+    ${CMAKE_CURRENT_BINARY_DIR}/resutils.def)
+
+add_library(resutils SHARED ${SOURCE})
 
 set_module_type(resutils win32dll)
 
index fa95275..e6fa52a 100644 (file)
@@ -2,9 +2,16 @@
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 add_definitions(-D__WINESRC__)
 
+set_rc_compiler()
 spec2def(samlib.dll samlib.spec)
 
-add_library(samlib SHARED dllmain.c samlib.c samlib.rc ${CMAKE_CURRENT_BINARY_DIR}/samlib.def)
+list(APPEND SOURCE
+    dllmain.c
+    samlib.c
+    samlib.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/samlib.def)
+
+add_library(samlib SHARED ${SOURCE})
 
 set_module_type(samlib win32dll)
 
index 5280ae1..453bc32 100644 (file)
@@ -4,7 +4,11 @@ add_definitions(-D__WINESRC__)
 
 spec2def(sccbase.dll sccbase.spec)
 
-add_library(sccbase SHARED main.c ${CMAKE_CURRENT_BINARY_DIR}/sccbase.def)
+list(APPEND SOURCE
+    main.c
+    ${CMAKE_CURRENT_BINARY_DIR}/sccbase.def)
+
+add_library(sccbase SHARED ${SOURCE})
 
 set_module_type(sccbase win32dll)
 
index 5895686..4f809fd 100644 (file)
@@ -1,16 +1,18 @@
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 add_definitions(-D__WINESRC__)
 
+set_rc_compiler()
 spec2def(schannel.dll schannel.spec)
 
-add_library(schannel SHARED
+list(APPEND SOURCE
     lsamode.c
     schannel_main.c
     usermode.c
     version.rc
     ${CMAKE_CURRENT_BINARY_DIR}/schannel.def)
 
+add_library(schannel SHARED ${SOURCE})
+
 set_module_type(schannel win32dll)
 
 target_link_libraries(schannel wine)
index 78ed2db..40e3095 100644 (file)
@@ -12,9 +12,10 @@ include_directories(
     ${REACTOS_SOURCE_DIR}/include/reactos/wine
     ${REACTOS_BINARY_DIR}/include/reactos/idl)
 
+set_rc_compiler()
 spec2def(setupapi.dll setupapi.spec)
 
-add_library(setupapi SHARED
+list(APPEND SOURCE
     cfgmgr.c
     devclass.c
     devinst.c
@@ -34,6 +35,8 @@ add_library(setupapi SHARED
     setupapi.rc
     ${CMAKE_CURRENT_BINARY_DIR}/setupapi.def)
 
+add_library(setupapi SHARED ${SOURCE})
+
 set_module_type(setupapi win32dll)
 
 target_link_libraries(setupapi
index 152e978..36c6da1 100644 (file)
@@ -11,7 +11,7 @@ add_library(sfc SHARED
 
 set_module_type(sfc win32dll)
 
-add_importlibs(sfc msvcrt kernel32)
+add_importlibs(sfc msvcrt kernel32 ntdll)
 add_pch(sfc ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
 
 add_cab_target(sfc 1)
index 02a8fe8..da80a50 100644 (file)
@@ -1,7 +1,12 @@
 
 spec2def(shimgvw.dll shimgvw.spec)
 
-add_library(shimgvw SHARED shimgvw.c shimgvw.rc ${CMAKE_CURRENT_BINARY_DIR}/shimgvw.def)
+list(APPEND SOURCE
+    shimgvw.c
+    shimgvw.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/shimgvw.def)
+
+add_library(shimgvw SHARED ${SOURCE})
 
 set_module_type(shimgvw win32dll)
 
@@ -17,5 +22,4 @@ add_importlibs(shimgvw
     kernel32
     ntdll)
 
-
 add_cab_target(shimgvw 1)
index 24a8b9d..c617f96 100644 (file)
@@ -4,7 +4,11 @@ add_definitions(-D__WINESRC__)
 
 spec2def(slbcsp.dll slbcsp.spec)
 
-add_library(slbcsp SHARED main.c ${CMAKE_CURRENT_BINARY_DIR}/slbcsp.def)
+list(APPEND SOURCE
+    main.c
+    ${CMAKE_CURRENT_BINARY_DIR}/slbcsp.def)
+
+add_library(slbcsp SHARED ${SOURCE})
 
 set_module_type(slbcsp win32dll)
 
index 76c2ad7..692ccd0 100644 (file)
@@ -4,10 +4,12 @@ add_definitions(-D__WINESRC__)
 
 spec2def(url.dll url.spec)
 
-add_library(url SHARED
+list(APPEND SOURCE
     url_main.c
     ${CMAKE_CURRENT_BINARY_DIR}/url.def)
 
+add_library(url SHARED ${SOURCE})
+
 set_module_type(url win32dll)
 
 target_link_libraries(url wine)
index c49b14e..8a5851a 100644 (file)
@@ -4,7 +4,7 @@ add_definitions(-D__WINESRC__)
 
 spec2def(usp10.dll usp10.spec)
 
-add_library(usp10 SHARED
+list(APPEND SOURCE
     bidi.c
     usp10.c
     mirror.c
@@ -12,6 +12,8 @@ add_library(usp10 SHARED
     shaping.c
     ${CMAKE_CURRENT_BINARY_DIR}/usp10.def)
 
+add_library(usp10 SHARED ${SOURCE})
+
 set_module_type(usp10 win32dll)
 
 target_link_libraries(usp10 wine)
index 41c06f9..0c3e268 100644 (file)
@@ -1,10 +1,11 @@
 
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 add_definitions(-D__WINESRC__)
+set_rc_compiler()
 
 spec2def(uxtheme.dll uxtheme.spec)
 
-add_library(uxtheme SHARED
+list(APPEND SOURCE
     buffer.c
     draw.c
     main.c
@@ -17,6 +18,8 @@ add_library(uxtheme SHARED
     version.rc
     ${CMAKE_CURRENT_BINARY_DIR}/uxtheme.def)
 
+add_library(uxtheme SHARED ${SOURCE})
+
 set_module_type(uxtheme win32dll)
 
 target_link_libraries(uxtheme wine)
index 36e6417..425ca8a 100644 (file)
@@ -11,9 +11,11 @@ include_directories(
     ${REACTOS_SOURCE_DIR}/include/reactos/libs/libpng
     ${REACTOS_SOURCE_DIR}/include/reactos/libs/libtiff)
 
+set_rc_compiler()
+
 spec2def(windowscodecs.dll windowscodecs.spec)
 
-add_library(windowscodecs SHARED
+list(APPEND SOURCE
     bmpdecode.c
     bmpencode.c
     clsfactory.c
@@ -35,6 +37,8 @@ add_library(windowscodecs SHARED
     version.rc
     ${CMAKE_CURRENT_BINARY_DIR}/windowscodecs.def)
 
+add_library(windowscodecs SHARED ${SOURCE})
+
 set_module_type(windowscodecs win32dll)
 
 target_link_libraries(windowscodecs wine)
index 9644be2..4cb2bd7 100644 (file)
@@ -10,7 +10,7 @@ spec2def(wininet.dll wininet.spec)
 
 set_rc_compiler()
 
-add_library(wininet SHARED
+list(APPEND SOURCE
     cookie.c
     dialogs.c
     ftp.c
@@ -25,6 +25,8 @@ add_library(wininet SHARED
     version.rc
     ${CMAKE_CURRENT_BINARY_DIR}/wininet.def)
 
+add_library(wininet SHARED ${SOURCE})
+
 set_module_type(wininet win32dll)
 
 target_link_libraries(wininet
index 2e74a3c..1245395 100644 (file)
@@ -5,13 +5,16 @@ set_unicode()
 
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
-add_library(winspool SHARED
+set_rc_compiler()
+
+list(APPEND SOURCE
     info.c
     stubs.c
-    winspool_winspool.stubs.c
     winspool.rc
     ${CMAKE_CURRENT_BINARY_DIR}/winspool.def)
 
+add_library(winspool SHARED ${SOURCE})
+
 set_target_properties(winspool PROPERTIES SUFFIX ".drv")
 set_module_type(winspool win32dll)
 
index 93f285f..620ca26 100644 (file)
@@ -2,9 +2,10 @@
 add_definitions(-D__WINESRC__)
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
+set_rc_compiler()
 spec2def(wintrust.dll wintrust.spec)
 
-add_library(wintrust SHARED
+list(APPEND SOURCE
     crypt.c
     register.c
     wintrust_main.c
@@ -13,6 +14,8 @@ add_library(wintrust SHARED
     version.rc
     ${CMAKE_CURRENT_BINARY_DIR}/wintrust.def)
 
+add_library(wintrust SHARED ${SOURCE})
+
 set_module_type(wintrust win32dll)
 
 target_link_libraries(wintrust
index 7389341..43133f9 100644 (file)
@@ -3,9 +3,12 @@ include_directories(${REACTOS_BINARY_DIR}/include/reactos/idl)
 
 spec2def(wlanapi.dll wlanapi.spec)
 
-add_library(wlanapi SHARED main.c
+list(APPEND SOURCE
+    main.c
     ${CMAKE_CURRENT_BINARY_DIR}/wlanapi.def)
 
+add_library(wlanapi SHARED ${SOURCE})
+
 set_entrypoint(wlanapi 0)
 
 target_link_libraries(wlanapi
index b46c83d..73eeb25 100644 (file)
@@ -2,9 +2,10 @@
 add_definitions(-D__WINESRC__)
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
+set_rc_compiler()
 spec2def(wldap32.dll wldap32.spec)
 
-add_library(wldap32 SHARED
+list(APPEND SOURCE
     add.c
     ber.c
     bind.c
@@ -28,6 +29,8 @@ add_library(wldap32 SHARED
     wldap32.rc
     ${CMAKE_CURRENT_BINARY_DIR}/wldap32.def)
 
+add_library(wldap32 SHARED ${SOURCE})
+
 set_module_type(wldap32 win32dll)
 
 target_link_libraries(wldap32 wine)
index 8dc2269..b883433 100644 (file)
@@ -4,7 +4,11 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
 spec2def(wtsapi32.dll wtsapi32.spec)
 
-add_library(wtsapi32 SHARED wtsapi32.c ${CMAKE_CURRENT_BINARY_DIR}/wtsapi32.def)
+list(APPEND SOURCE
+    wtsapi32.c
+    ${CMAKE_CURRENT_BINARY_DIR}/wtsapi32.def)
+
+add_library(wtsapi32 SHARED ${SOURCE})
 
 set_module_type(wtsapi32 win32dll)
 
index 4627156..d28ff83 100644 (file)
@@ -4,7 +4,12 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
 spec2def(xmllite.dll xmllite.spec)
 
-add_library(xmllite SHARED reader.c xmllite_main.c ${CMAKE_CURRENT_BINARY_DIR}/xmllite.def)
+list(APPEND SOURCE
+    reader.c
+    xmllite_main.c
+    ${CMAKE_CURRENT_BINARY_DIR}/xmllite.def)
+
+add_library(xmllite SHARED ${SOURCE})
 
 set_module_type(xmllite win32dll)
 
@@ -13,5 +18,4 @@ target_link_libraries(xmllite
 
 add_importlibs(xmllite msvcrt kernel32 ntdll)
 
-
 add_cab_target(xmllite 1)