[SHELLEXTS] Properly track resource file dependencies. CORE-9806
authorAmine Khaldi <amine.khaldi@reactos.org>
Sun, 27 Sep 2015 18:37:23 +0000 (18:37 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 27 Sep 2015 18:37:23 +0000 (18:37 +0000)
svn path=/trunk/; revision=69386

reactos/dll/shellext/deskadp/CMakeLists.txt
reactos/dll/shellext/deskmon/CMakeLists.txt
reactos/dll/shellext/netshell/CMakeLists.txt
reactos/dll/shellext/ntobjshex/CMakeLists.txt
reactos/dll/shellext/stobject/CMakeLists.txt

index 9d8cda1..8333fa0 100644 (file)
@@ -6,6 +6,8 @@ list(APPEND SOURCE
     shxiface.c
     precomp.h)
 
+add_rc_deps(deskadp.rc ${CMAKE_CURRENT_SOURCE_DIR}/resources/adapter.ico)
+
 add_library(deskadp SHARED
     ${SOURCE}
     deskadp.rc
index 8691316..93264f1 100644 (file)
@@ -6,6 +6,8 @@ list(APPEND SOURCE
     shxiface.c
     precomp.h)
 
+add_rc_deps(deskmon.rc ${CMAKE_CURRENT_SOURCE_DIR}/resources/monitor.ico)
+
 add_library(deskmon SHARED
     ${SOURCE}
     deskmon.rc
index c43268b..a1e9bd9 100644 (file)
@@ -24,6 +24,9 @@ list(APPEND SOURCE
     lanstatusui.cpp
     precomp.h)
 
+file(GLOB netshell_rc_deps res/*.*)
+add_rc_deps(netshell.rc ${netshell_rc_deps})
+
 add_library(netshell SHARED
     ${SOURCE}
     netshell.rc
index d96f1bd..ac46d51 100644 (file)
@@ -14,6 +14,9 @@ include_directories(
 
 spec2def(ntobjshex.dll ntobjshex.spec)
 
+file(GLOB_RECURSE ntobjshex_rc_deps resources/*.*)
+add_rc_deps(ntobjshex.rc ${ntobjshex_rc_deps})
+
 add_library(ntobjshex SHARED
     ntobjenum.cpp
     ntobjfolder.cpp
@@ -22,9 +25,6 @@ add_library(ntobjshex SHARED
     regfolder.cpp
     ${CMAKE_CURRENT_BINARY_DIR}/ntobjshex.def)
 
-list(APPEND atl_rc_deps
-    ${CMAKE_CURRENT_SOURCE_DIR}/resources/rgs/ntobjectfolder.rgs)
-
 set_module_type(ntobjshex win32dll UNICODE)
 target_link_libraries(ntobjshex uuid wine atlnew)
 
index d718d3b..d63a297 100644 (file)
@@ -14,6 +14,9 @@ include_directories(
 
 spec2def(stobject.dll stobject.spec)
 
+file(GLOB_RECURSE stobject_rc_deps resources/*.*)
+add_rc_deps(stobject.rc ${stobject_rc_deps})
+
 add_library(stobject SHARED
     csystray.cpp
     stobject.cpp