[CMD][EXPLORER][EXPLORER_NEW]

* Prepare the CMake scripts for PCH.
CORE-7716

svn path=/trunk/; revision=62127
This commit is contained in:
Amine Khaldi 2014-02-12 11:00:35 +00:00
parent 4940711b04
commit 1cba1c80c4
3 changed files with 16 additions and 14 deletions

View file

@ -65,11 +65,11 @@ list(APPEND SOURCE
vol.c
where.c
window.c
cmd.rc)
precomp.h)
add_executable(cmd ${SOURCE})
add_executable(cmd ${SOURCE} cmd.rc)
target_link_libraries(cmd wine)
set_module_type(cmd win32cui UNICODE)
add_importlibs(cmd advapi32 user32 msvcrt kernel32 ntdll)
add_pch(cmd precomp.h)
add_pch(cmd precomp.h SOURCE)
add_cd_file(TARGET cmd DESTINATION reactos/system32 FOR all)

View file

@ -14,9 +14,9 @@ list(APPEND SOURCE
trayntfy.c
trayprop.c
traywnd.c
explorer.rc)
precomp.h)
add_executable(explorer_new ${SOURCE})
add_executable(explorer_new ${SOURCE} explorer.rc)
target_link_libraries(explorer_new uuid)
set_module_type(explorer_new win32gui UNICODE)
add_importlibs(explorer_new
@ -34,5 +34,5 @@ add_importlibs(explorer_new
msvcrt
kernel32
ntdll)
add_pch(explorer_new precomp.h)
add_pch(explorer_new precomp.h SOURCE)
add_cd_file(TARGET explorer_new DESTINATION reactos FOR all)

View file

@ -7,7 +7,6 @@ add_definitions(
-DWIN32
-D__WINDRES__)
#add_pch(explorer precomp.h)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
list(APPEND SOURCE
@ -31,9 +30,6 @@ list(APPEND SOURCE
taskbar/desktopbar.cpp
taskbar/startmenu.cpp
taskbar/traynotify.cpp
precomp.cpp
explorer.rc
services/startup.c
services/shellservices.cpp
desktop/desktop.cpp
explorer.cpp
@ -43,18 +39,24 @@ list(APPEND SOURCE
utility/utility.cpp
utility/xmlstorage.cpp
utility/window.cpp
utility/shellbrowserimpl.cpp) # utility/shelltests.cpp
utility/shellbrowserimpl.cpp
precomp.h) # utility/shelltests.cpp
if(ARCH STREQUAL "i386")
list(APPEND SOURCE
i386-stub-win32.c)
list(APPEND I386_SOURCE i386-stub-win32.c)
endif()
add_executable(explorer ${SOURCE})
add_executable(explorer
${SOURCE}
${I386_SOURCE}
services/startup.c
explorer.rc)
target_link_libraries(explorer comsupp wine uuid)
set_module_type(explorer win32gui UNICODE)
add_importlibs(explorer advapi32 gdi32 user32 ws2_32 msimg32 comctl32 ole32 oleaut32 shell32 shlwapi notifyhook msvcrt kernel32 ntdll)
add_pch(explorer precomp.h SOURCE)
add_dependencies(explorer psdk)
add_cd_file(TARGET explorer DESTINATION reactos FOR all)
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/explorer-cfg-template.xml DESTINATION reactos FOR all)