[APPLICATIONS] Properly track resource file dependencies. CORE-9806
authorAmine Khaldi <amine.khaldi@reactos.org>
Wed, 17 Jun 2015 17:20:29 +0000 (17:20 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Wed, 17 Jun 2015 17:20:29 +0000 (17:20 +0000)
svn path=/trunk/; revision=68170

33 files changed:
reactos/base/applications/calc/CMakeLists.txt
reactos/base/applications/charmap/CMakeLists.txt
reactos/base/applications/control/CMakeLists.txt
reactos/base/applications/dxdiag/CMakeLists.txt
reactos/base/applications/fontview/CMakeLists.txt
reactos/base/applications/games/solitaire/CMakeLists.txt
reactos/base/applications/games/spider/CMakeLists.txt
reactos/base/applications/games/winmine/CMakeLists.txt
reactos/base/applications/hh/CMakeLists.txt
reactos/base/applications/iexplore/CMakeLists.txt
reactos/base/applications/kbswitch/CMakeLists.txt
reactos/base/applications/magnify/CMakeLists.txt
reactos/base/applications/mmc/CMakeLists.txt
reactos/base/applications/mplay32/CMakeLists.txt
reactos/base/applications/msconfig/CMakeLists.txt
reactos/base/applications/mscutils/devmgmt/CMakeLists.txt
reactos/base/applications/mscutils/eventvwr/CMakeLists.txt
reactos/base/applications/mspaint/CMakeLists.txt
reactos/base/applications/mspaint_new/CMakeLists.txt
reactos/base/applications/mstsc/CMakeLists.txt
reactos/base/applications/notepad/CMakeLists.txt
reactos/base/applications/osk/CMakeLists.txt
reactos/base/applications/rapps/CMakeLists.txt
reactos/base/applications/rapps_new/CMakeLists.txt
reactos/base/applications/regedit/CMakeLists.txt
reactos/base/applications/regedt32/CMakeLists.txt
reactos/base/applications/screensavers/3dtext/CMakeLists.txt
reactos/base/applications/screensavers/logon/CMakeLists.txt
reactos/base/applications/sndrec32/CMakeLists.txt
reactos/base/applications/sndvol32/CMakeLists.txt
reactos/base/applications/taskmgr/CMakeLists.txt
reactos/base/applications/winhlp32/CMakeLists.txt
reactos/base/applications/wordpad/CMakeLists.txt

index 85332bd..04899db 100644 (file)
@@ -10,6 +10,8 @@ list(APPEND SOURCE
     winmain.c
     calc.h)
 
     winmain.c
     calc.h)
 
+file(GLOB calc_rc_deps res/*.*)
+add_rc_deps(resource.rc ${calc_rc_deps})
 add_executable(calc ${SOURCE} resource.rc)
 set_module_type(calc win32gui UNICODE)
 add_importlibs(calc advapi32 user32 gdi32 msvcrt kernel32)
 add_executable(calc ${SOURCE} resource.rc)
 set_module_type(calc win32gui UNICODE)
 add_importlibs(calc advapi32 user32 gdi32 msvcrt kernel32)
index 8baa177..e576b74 100644 (file)
@@ -7,6 +7,7 @@ list(APPEND SOURCE
     settings.c
     precomp.h)
 
     settings.c
     precomp.h)
 
+add_rc_deps(charmap.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/charmap.ico)
 add_executable(charmap ${SOURCE} charmap.rc)
 set_module_type(charmap win32gui UNICODE)
 add_importlibs(charmap advapi32 user32 gdi32 comctl32 msvcrt kernel32)
 add_executable(charmap ${SOURCE} charmap.rc)
 set_module_type(charmap win32gui UNICODE)
 add_importlibs(charmap advapi32 user32 gdi32 comctl32 msvcrt kernel32)
index 0818fce..06e49c1 100644 (file)
@@ -1,4 +1,5 @@
 
 
+add_rc_deps(control.rc ${CMAKE_CURRENT_SOURCE_DIR}/resources/config.ico)
 add_executable(control control.c control.rc)
 set_module_type(control win32gui UNICODE)
 add_importlibs(control advapi32 shell32 user32 msvcrt kernel32)
 add_executable(control control.c control.rc)
 set_module_type(control win32gui UNICODE)
 add_importlibs(control advapi32 shell32 user32 msvcrt kernel32)
index f75b121..fbcaff5 100644 (file)
@@ -15,6 +15,7 @@ list(APPEND SOURCE
     d3dtest9.c
     precomp.h)
 
     d3dtest9.c
     precomp.h)
 
+add_rc_deps(dxdiag.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/dxdiag.ico)
 add_executable(dxdiag ${SOURCE} dxdiag.rc)
 set_module_type(dxdiag win32gui UNICODE)
 target_link_libraries(dxdiag dxguid)
 add_executable(dxdiag ${SOURCE} dxdiag.rc)
 set_module_type(dxdiag win32gui UNICODE)
 target_link_libraries(dxdiag dxguid)
index 53b55f8..5758d49 100644 (file)
@@ -4,6 +4,7 @@ list(APPEND SOURCE
     fontview.c
     precomp.h)
 
     fontview.c
     precomp.h)
 
+add_rc_deps(fontview.rc ${CMAKE_CURRENT_SOURCE_DIR}/ttf.ico)
 add_executable(fontview ${SOURCE} fontview.rc)
 set_module_type(fontview win32gui)
 add_importlibs(fontview comdlg32 gdi32 shell32 user32 msvcrt kernel32)
 add_executable(fontview ${SOURCE} fontview.rc)
 set_module_type(fontview win32gui)
 add_importlibs(fontview comdlg32 gdi32 shell32 user32 msvcrt kernel32)
index 5528121..23f3428 100644 (file)
@@ -8,6 +8,7 @@ list(APPEND SOURCE
     solitaire.cpp
     solitaire.h)
 
     solitaire.cpp
     solitaire.h)
 
+add_rc_deps(rsrc.rc ${CMAKE_CURRENT_SOURCE_DIR}/solitaire.ico)
 add_executable(sol ${SOURCE} rsrc.rc)
 target_link_libraries(sol cardlib)
 set_module_type(sol win32gui UNICODE)
 add_executable(sol ${SOURCE} rsrc.rc)
 target_link_libraries(sol cardlib)
 set_module_type(sol win32gui UNICODE)
index a74233e..a036f0e 100644 (file)
@@ -10,6 +10,7 @@ list(APPEND SOURCE
     spigame.cpp
     spider.h)
 
     spigame.cpp
     spider.h)
 
+add_rc_deps(rsrc.rc ${CMAKE_CURRENT_SOURCE_DIR}/spider.ico)
 add_executable(spider ${SOURCE} rsrc.rc)
 target_link_libraries(spider cardlib)
 add_pch(spider spider.h SOURCE)
 add_executable(spider ${SOURCE} rsrc.rc)
 target_link_libraries(spider cardlib)
 add_pch(spider spider.h SOURCE)
index 30cdd66..f32befc 100644 (file)
@@ -6,6 +6,8 @@ list(APPEND SOURCE
     dialog.c
     main.h)
 
     dialog.c
     main.h)
 
+file(GLOB winmine_rc_deps rc/*.*)
+add_rc_deps(rsrc.rc ${winmine_rc_deps})
 add_executable(winmine ${SOURCE} rsrc.rc)
 set_module_type(winmine win32gui UNICODE)
 target_link_libraries(winmine wine)
 add_executable(winmine ${SOURCE} rsrc.rc)
 set_module_type(winmine win32gui UNICODE)
 target_link_libraries(winmine wine)
index 451d84e..44c1624 100644 (file)
@@ -1,4 +1,5 @@
 
 
+add_rc_deps(hh.rc ${CMAKE_CURRENT_SOURCE_DIR}/hh.ico)
 add_executable(hh main.c hh.rc)
 set_module_type(hh win32gui)
 add_importlibs(hh gdi32 user32 msvcrt kernel32)
 add_executable(hh main.c hh.rc)
 set_module_type(hh win32gui)
 add_importlibs(hh gdi32 user32 msvcrt kernel32)
index 540c1b7..ed834e4 100644 (file)
@@ -1,4 +1,5 @@
 
 
+add_rc_deps(iexplore.rc ${CMAKE_CURRENT_SOURCE_DIR}/iexplore.ico)
 add_executable(iexplore main.c iexplore.rc)
 target_link_libraries(iexplore wine)
 set_module_type(iexplore win32gui UNICODE)
 add_executable(iexplore main.c iexplore.rc)
 target_link_libraries(iexplore wine)
 set_module_type(iexplore win32gui UNICODE)
index 23d7831..2b73541 100644 (file)
@@ -1,4 +1,5 @@
 
 
+add_rc_deps(kbswitch.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/kbswitch.ico)
 add_executable(kbswitch kbswitch.c kbswitch.rc)
 set_module_type(kbswitch win32gui UNICODE)
 add_importlibs(kbswitch advapi32 user32 shell32 gdi32 msvcrt kernel32)
 add_executable(kbswitch kbswitch.c kbswitch.rc)
 set_module_type(kbswitch win32gui UNICODE)
 add_importlibs(kbswitch advapi32 user32 shell32 gdi32 msvcrt kernel32)
index 0db7137..ee7919e 100644 (file)
@@ -4,6 +4,7 @@ list(APPEND SOURCE
     settings.c
     magnifier.h)
 
     settings.c
     magnifier.h)
 
+add_rc_deps(magnify.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/magnify.ico)
 add_executable(magnify ${SOURCE} magnify.rc)
 set_module_type(magnify win32gui)
 add_importlibs(magnify user32 gdi32 advapi32 shell32 msvcrt kernel32)
 add_executable(magnify ${SOURCE} magnify.rc)
 set_module_type(magnify win32gui)
 add_importlibs(magnify user32 gdi32 advapi32 shell32 msvcrt kernel32)
index cad6e4d..7732099 100644 (file)
@@ -5,6 +5,7 @@ list(APPEND SOURCE
     mmc.c
     precomp.h)
 
     mmc.c
     precomp.h)
 
+add_rc_deps(mmc.rc ${CMAKE_CURRENT_SOURCE_DIR}/resources/mmc.ico)
 add_executable(mmcclient ${SOURCE} mmc.rc)
 set_module_type(mmcclient win32gui UNICODE)
 add_importlibs(mmcclient user32 gdi32 comdlg32 advapi32 shell32 comctl32 msvcrt kernel32)
 add_executable(mmcclient ${SOURCE} mmc.rc)
 set_module_type(mmcclient win32gui UNICODE)
 add_importlibs(mmcclient user32 gdi32 comdlg32 advapi32 shell32 comctl32 msvcrt kernel32)
index de54a0e..7bda69f 100644 (file)
@@ -1,4 +1,6 @@
 
 
+file(GLOB mplay32_rc_deps resources/*.*)
+add_rc_deps(mplay32.rc ${mplay32_rc_deps})
 add_executable(mplay32 mplay32.c mplay32.rc)
 set_module_type(mplay32 win32gui UNICODE)
 add_importlibs(mplay32 advapi32 comctl32 comdlg32 user32 gdi32 winmm shell32 msvcrt kernel32)
 add_executable(mplay32 mplay32.c mplay32.rc)
 set_module_type(mplay32 win32gui UNICODE)
 add_importlibs(mplay32 advapi32 comctl32 comdlg32 user32 gdi32 winmm shell32 msvcrt kernel32)
index 77f652b..62e4b78 100644 (file)
@@ -9,6 +9,7 @@ list(APPEND SOURCE
     msconfig.c
     precomp.h)
 
     msconfig.c
     precomp.h)
 
+add_rc_deps(msconfig.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/msconfig.ico)
 add_executable(msconfig ${SOURCE} msconfig.rc)
 set_module_type(msconfig win32gui UNICODE)
 add_importlibs(msconfig user32 advapi32 version comctl32 shell32 shlwapi msvcrt kernel32)
 add_executable(msconfig ${SOURCE} msconfig.rc)
 set_module_type(msconfig win32gui UNICODE)
 add_importlibs(msconfig user32 advapi32 version comctl32 shell32 shlwapi msvcrt kernel32)
index 2c4c0ac..47cf226 100644 (file)
@@ -7,6 +7,8 @@ list(APPEND SOURCE
     misc.c
     precomp.h)
 
     misc.c
     precomp.h)
 
+file(GLOB devmgmt_rc_deps res/*.*)
+add_rc_deps(devmgmt.rc ${devmgmt_rc_deps})
 add_executable(devmgmt ${SOURCE} devmgmt.rc)
 set_module_type(devmgmt win32gui UNICODE)
 add_importlibs(devmgmt setupapi gdi32 user32 comctl32 advapi32 devmgr msvcrt kernel32)
 add_executable(devmgmt ${SOURCE} devmgmt.rc)
 set_module_type(devmgmt win32gui UNICODE)
 add_importlibs(devmgmt setupapi gdi32 user32 comctl32 advapi32 devmgr msvcrt kernel32)
index 911f446..899204c 100644 (file)
@@ -1,4 +1,6 @@
 
 
+file(GLOB eventvwr_rc_deps res/*.*)
+add_rc_deps(eventvwr.rc ${eventvwr_rc_deps})
 add_executable(eventvwr eventvwr.c eventvwr.rc)
 set_module_type(eventvwr win32gui UNICODE)
 add_importlibs(eventvwr user32 comctl32 comdlg32 advapi32 msvcrt kernel32)
 add_executable(eventvwr eventvwr.c eventvwr.rc)
 set_module_type(eventvwr win32gui UNICODE)
 add_importlibs(eventvwr user32 comctl32 comdlg32 advapi32 msvcrt kernel32)
index d5ac4d4..3469a8c 100644 (file)
@@ -16,6 +16,8 @@ list(APPEND SOURCE
     winproc.c
     precomp.h)
 
     winproc.c
     precomp.h)
 
+file(GLOB mspaint_rc_deps icons/*.*)
+add_rc_deps(rsrc.rc ${mspaint_rc_deps})
 add_executable(mspaint ${SOURCE} rsrc.rc)
 set_module_type(mspaint win32gui UNICODE)
 add_importlibs(mspaint hhctrl comdlg32 shell32 user32 gdi32 advapi32 comctl32 msvcrt kernel32)
 add_executable(mspaint ${SOURCE} rsrc.rc)
 set_module_type(mspaint win32gui UNICODE)
 add_importlibs(mspaint hhctrl comdlg32 shell32 user32 gdi32 advapi32 comctl32 msvcrt kernel32)
index c6674a6..4fc6ccf 100644 (file)
@@ -21,6 +21,8 @@ list(APPEND SOURCE
     winproc.cpp
     precomp.h)
 
     winproc.cpp
     precomp.h)
 
+file(GLOB mspaint_new_rc_deps icons/*.*)
+add_rc_deps(rsrc.rc ${mspaint_new_rc_deps})
 add_executable(mspaint_new ${SOURCE} rsrc.rc)
 set_module_type(mspaint_new win32gui UNICODE)
 add_importlibs(mspaint_new hhctrl comdlg32 shell32 user32 gdi32 advapi32 comctl32 msvcrt kernel32)
 add_executable(mspaint_new ${SOURCE} rsrc.rc)
 set_module_type(mspaint_new win32gui UNICODE)
 add_importlibs(mspaint_new hhctrl comdlg32 shell32 user32 gdi32 advapi32 comctl32 msvcrt kernel32)
index 5a33546..78de362 100644 (file)
@@ -30,6 +30,8 @@ list(APPEND SOURCE
     uimain.h
     precomp.h)
 
     uimain.h
     precomp.h)
 
+file(GLOB mstsc_rc_deps res/*.*)
+add_rc_deps(rdc.rc ${mstsc_rc_deps})
 add_executable(mstsc ${SOURCE} rdc.rc)
 set_module_type(mstsc win32gui UNICODE)
 add_importlibs(mstsc user32 gdi32 comctl32 ws2_32 advapi32 shell32 ole32 comdlg32 msvcrt kernel32)
 add_executable(mstsc ${SOURCE} rdc.rc)
 set_module_type(mstsc win32gui UNICODE)
 add_importlibs(mstsc user32 gdi32 comctl32 ws2_32 advapi32 shell32 ole32 comdlg32 msvcrt kernel32)
index 14b428d..1674d83 100644 (file)
@@ -6,6 +6,7 @@ list(APPEND SOURCE
     text.c
     notepad.h)
 
     text.c
     notepad.h)
 
+add_rc_deps(rsrc.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/notepad.ico)
 add_executable(notepad ${SOURCE} rsrc.rc)
 set_module_type(notepad win32gui UNICODE)
 add_importlibs(notepad user32 gdi32 comctl32 comdlg32 advapi32 shell32 msvcrt kernel32)
 add_executable(notepad ${SOURCE} rsrc.rc)
 set_module_type(notepad win32gui UNICODE)
 add_importlibs(notepad user32 gdi32 comctl32 comdlg32 advapi32 shell32 msvcrt kernel32)
index 6541362..a6451ea 100644 (file)
@@ -1,4 +1,6 @@
 
 
+file(GLOB osk_rc_deps res/*.*)
+add_rc_deps(rsrc.rc ${osk_rc_deps})
 add_executable(osk main.c rsrc.rc)
 set_module_type(osk win32gui UNICODE)
 add_importlibs(osk comdlg32 shell32 user32 gdi32 advapi32 comctl32 msvcrt kernel32)
 add_executable(osk main.c rsrc.rc)
 set_module_type(osk win32gui UNICODE)
 add_importlibs(osk comdlg32 shell32 user32 gdi32 advapi32 comctl32 msvcrt kernel32)
index 25d0bd1..4b00ada 100644 (file)
@@ -16,6 +16,8 @@ list(APPEND SOURCE
     winmain.c
     rapps.h)
 
     winmain.c
     rapps.h)
 
+file(GLOB_RECURSE rapps_rc_deps res/*.*)
+add_rc_deps(rapps.rc ${rapps_rc_deps})
 add_executable(rapps ${SOURCE} rapps.rc)
 set_module_type(rapps win32gui UNICODE)
 target_link_libraries(rapps uuid)
 add_executable(rapps ${SOURCE} rapps.rc)
 set_module_type(rapps win32gui UNICODE)
 target_link_libraries(rapps uuid)
index e004f93..3771815 100644 (file)
@@ -16,6 +16,8 @@ list(APPEND SOURCE
     winmain.cpp
     rapps.h)
 
     winmain.cpp
     rapps.h)
 
+file(GLOB_RECURSE rapps_new_rc_deps res/*.*)
+add_rc_deps(rapps.rc ${rapps_new_rc_deps})
 add_executable(rapps_new ${SOURCE} rapps.rc)
 set_module_type(rapps_new win32gui UNICODE)
 target_link_libraries(rapps_new atlnew uuid wine)
 add_executable(rapps_new ${SOURCE} rapps.rc)
 set_module_type(rapps_new win32gui UNICODE)
 target_link_libraries(rapps_new atlnew uuid wine)
index d97079a..aef9690 100644 (file)
@@ -18,6 +18,8 @@ list(APPEND SOURCE
     treeview.c
     regedit.h)
 
     treeview.c
     regedit.h)
 
+file(GLOB regedit_rc_deps res/*.*)
+add_rc_deps(regedit.rc ${regedit_rc_deps})
 add_executable(regedit ${SOURCE} regedit.rc)
 set_module_type(regedit win32gui UNICODE)
 target_link_libraries(regedit uuid)
 add_executable(regedit ${SOURCE} regedit.rc)
 set_module_type(regedit win32gui UNICODE)
 target_link_libraries(regedit uuid)
index 4a65a29..419eb91 100644 (file)
@@ -1,4 +1,5 @@
 
 
+add_rc_deps(resource.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/regedt32.ico)
 add_executable(regedt32 regedt32.c resource.rc)
 set_module_type(regedt32 win32gui UNICODE)
 add_importlibs(regedt32 shell32 shlwapi msvcrt kernel32)
 add_executable(regedt32 regedt32.c resource.rc)
 set_module_type(regedt32 win32gui UNICODE)
 add_importlibs(regedt32 shell32 shlwapi msvcrt kernel32)
index 237e8d4..8258dba 100644 (file)
@@ -4,6 +4,7 @@ list(APPEND SOURCE
     settings.c
     3dtext.h)
 
     settings.c
     3dtext.h)
 
+add_rc_deps(rsrc.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/icon_3dtext.ico)
 add_executable(3dtext ${SOURCE} rsrc.rc)
 set_module_type(3dtext win32gui UNICODE)
 set_target_properties(3dtext PROPERTIES SUFFIX ".scr")
 add_executable(3dtext ${SOURCE} rsrc.rc)
 set_module_type(3dtext win32gui UNICODE)
 set_target_properties(3dtext PROPERTIES SUFFIX ".scr")
index c13e506..7d1dbc7 100644 (file)
@@ -1,4 +1,6 @@
 
 
+file(GLOB logon_rc_deps res/*.*)
+add_rc_deps(logon.rc ${logon_rc_deps})
 add_executable(logon logon.c logon.rc)
 set_module_type(logon win32gui UNICODE)
 set_target_properties(logon PROPERTIES SUFFIX ".scr")
 add_executable(logon logon.c logon.rc)
 set_module_type(logon win32gui UNICODE)
 set_target_properties(logon PROPERTIES SUFFIX ".scr")
index 1319008..83809d2 100644 (file)
@@ -12,6 +12,8 @@ list(APPEND SOURCE
     sndrec32.cpp
     stdafx.h)
 
     sndrec32.cpp
     stdafx.h)
 
+file(GLOB sndrec32_rc_deps resources/*.*)
+add_rc_deps(rsrc.rc ${sndrec32_rc_deps})
 add_executable(sndrec32 ${SOURCE} rsrc.rc)
 set_module_type(sndrec32 win32gui UNICODE)
 add_importlibs(sndrec32 winmm user32 msacm32 comctl32 comdlg32 gdi32 shell32 msvcrt kernel32)
 add_executable(sndrec32 ${SOURCE} rsrc.rc)
 set_module_type(sndrec32 win32gui UNICODE)
 add_importlibs(sndrec32 winmm user32 msacm32 comctl32 comdlg32 gdi32 shell32 msvcrt kernel32)
index 72fb422..3d97d12 100644 (file)
@@ -6,6 +6,7 @@ list(APPEND SOURCE
     sndvol32.c
     sndvol32.h)
 
     sndvol32.c
     sndvol32.h)
 
+add_rc_deps(sndvol32.rc ${CMAKE_CURRENT_SOURCE_DIR}/resources/sndvol32.ico)
 add_executable(sndvol32 ${SOURCE} sndvol32.rc)
 set_module_type(sndvol32 win32gui UNICODE)
 add_importlibs(sndvol32 user32 advapi32 gdi32 comctl32 shell32 winmm msvcrt kernel32 ntdll)
 add_executable(sndvol32 ${SOURCE} sndvol32.rc)
 set_module_type(sndvol32 win32gui UNICODE)
 add_importlibs(sndvol32 user32 advapi32 gdi32 comctl32 shell32 winmm msvcrt kernel32 ntdll)
index 68bae6c..4cfba9f 100644 (file)
@@ -21,6 +21,8 @@ list(APPEND SOURCE
     trayicon.c
     precomp.h)
 
     trayicon.c
     precomp.h)
 
+file(GLOB taskmgr_rc_deps res/*.*)
+add_rc_deps(taskmgr.rc ${taskmgr_rc_deps})
 add_executable(taskmgr ${SOURCE} taskmgr.rc)
 set_module_type(taskmgr win32gui UNICODE)
 add_importlibs(taskmgr advapi32 user32 gdi32 shell32 shlwapi comctl32 msvcrt kernel32 ntdll)
 add_executable(taskmgr ${SOURCE} taskmgr.rc)
 set_module_type(taskmgr win32gui UNICODE)
 add_importlibs(taskmgr advapi32 user32 gdi32 shell32 shlwapi comctl32 msvcrt kernel32 ntdll)
index 9cecac8..a7b5258 100644 (file)
@@ -15,11 +15,8 @@ list(APPEND SOURCE
     winhelp.c
     winhelp.h)
 
     winhelp.c
     winhelp.h)
 
-add_executable(winhlp32
-    ${SOURCE}
-    string.c
-    rsrc.rc)
-
+add_rc_deps(rsrc.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/winhelp.ico)
+add_executable(winhlp32 ${SOURCE} string.c rsrc.rc)
 set_module_type(winhlp32 win32gui)
 target_link_libraries(winhlp32 wine)
 add_importlibs(winhlp32 user32 gdi32 shell32 comctl32 comdlg32 msvcrt kernel32 ntdll)
 set_module_type(winhlp32 win32gui)
 target_link_libraries(winhlp32 wine)
 add_importlibs(winhlp32 user32 gdi32 shell32 comctl32 comdlg32 msvcrt kernel32 ntdll)
index 4a1c36e..9a6848c 100644 (file)
@@ -8,10 +8,11 @@ list(APPEND SOURCE
     olecallback.c
     print.c
     registry.c
     olecallback.c
     print.c
     registry.c
-    wordpad.c
-    rsrc.rc)
+    wordpad.c)
 
 
-add_executable(wordpad ${SOURCE})
+file(GLOB wordpad_rc_deps res/*.*)
+add_rc_deps(rsrc.rc ${wordpad_rc_deps})
+add_executable(wordpad ${SOURCE} rsrc.rc)
 set_module_type(wordpad win32gui)
 target_link_libraries(wordpad wine uuid)
 add_importlibs(wordpad comdlg32 ole32 shell32 user32 gdi32 advapi32 comctl32 msvcrt kernel32 ntdll)
 set_module_type(wordpad win32gui)
 target_link_libraries(wordpad wine uuid)
 add_importlibs(wordpad comdlg32 ole32 shell32 user32 gdi32 advapi32 comctl32 msvcrt kernel32 ntdll)