[CMD][EXPLORER] Properly track resource file dependencies. CORE-9806
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 22 Jun 2015 18:39:14 +0000 (18:39 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 22 Jun 2015 18:39:14 +0000 (18:39 +0000)
svn path=/trunk/; revision=68241

reactos/base/shell/cmd/CMakeLists.txt
reactos/base/shell/explorer/CMakeLists.txt

index 1f83e91..4ac7c69 100644 (file)
@@ -67,6 +67,7 @@ list(APPEND SOURCE
     window.c
     precomp.h)
 
     window.c
     precomp.h)
 
+add_rc_deps(cmd.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/terminal.ico)
 add_executable(cmd ${SOURCE} cmd.rc)
 target_link_libraries(cmd wine)
 set_module_type(cmd win32cui UNICODE)
 add_executable(cmd ${SOURCE} cmd.rc)
 target_link_libraries(cmd wine)
 set_module_type(cmd win32cui UNICODE)
index 138d90a..ce8f50c 100644 (file)
@@ -23,6 +23,8 @@ list(APPEND SOURCE
     util.cpp
     precomp.h)
 
     util.cpp
     precomp.h)
 
+file(GLOB explorer_rc_deps res/*.*)
+add_rc_deps(explorer.rc ${explorer_rc_deps})
 add_executable(explorer ${SOURCE} explorer.rc)
 target_link_libraries(explorer uuid atlnew wine)
 set_module_type(explorer win32gui UNICODE)
 add_executable(explorer ${SOURCE} explorer.rc)
 target_link_libraries(explorer uuid atlnew wine)
 set_module_type(explorer win32gui UNICODE)