[BASE/SYSTEM]

* Prepare the CMake scripts for PCH.
CORE-7716

svn path=/trunk/; revision=62063
This commit is contained in:
Amine Khaldi 2014-02-09 10:40:34 +00:00
parent 114af4f814
commit 06510e690b
5 changed files with 56 additions and 53 deletions

View file

@ -1,5 +1,5 @@
add_executable(diskpart
list(APPEND SOURCE
active.c
add.c
assign.c
@ -38,11 +38,13 @@ add_executable(diskpart
setid.c
shrink.c
uniqueid.c
diskpart.rc)
diskpart.h)
add_executable(diskpart ${SOURCE} diskpart.rc)
set_module_type(diskpart win32cui UNICODE)
add_importlibs(diskpart user32 msvcrt advapi32 kernel32)
if(MSVC)
add_importlibs(diskpart ntdll)
endif()
add_pch(diskpart diskpart.h SOURCE)
add_cd_file(TARGET diskpart DESTINATION reactos/system32 FOR all)

View file

@ -3,12 +3,15 @@ add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/wine)
add_executable(msiexec
list(APPEND SOURCE
msiexec.c
service.c
rsrc.rc)
precomp.h)
add_executable(msiexec ${SOURCE} rsrc.rc)
set_module_type(msiexec win32gui)
target_link_libraries(msiexec uuid wine)
add_importlibs(msiexec user32 advapi32 ole32 msi msvcrt kernel32 ntdll)
add_pch(msiexec precomp.h SOURCE)
add_cd_file(TARGET msiexec DESTINATION reactos/system32 FOR all)

View file

@ -16,10 +16,10 @@ list(APPEND SOURCE
lock.c
rpcserver.c
services.c
services.rc
services.h
${CMAKE_CURRENT_BINARY_DIR}/svcctl_s.c)
add_executable(services ${SOURCE})
add_executable(services ${SOURCE} services.rc)
if(NOT MSVC)
target_link_libraries(services ${PSEH_LIB})
@ -27,5 +27,5 @@ endif()
set_module_type(services win32gui UNICODE)
add_importlibs(services user32 advapi32 rpcrt4 msvcrt kernel32 ntdll)
add_pch(services services.h ${CMAKE_CURRENT_BINARY_DIR}/svcctl_s.h)
add_pch(services services.h SOURCE)
add_cd_file(TARGET services DESTINATION reactos/system32 FOR all)

View file

@ -11,11 +11,11 @@ list(APPEND SOURCE
smsubsys.c
smutil.c
smss.c
smss.rc)
smss.h)
add_executable(smss WIN32 ${SOURCE})
add_executable(smss WIN32 ${SOURCE} smss.rc)
target_link_libraries(smss nt ${PSEH_LIB} smlib)
add_pch(smss smss.h)
set_module_type(smss nativecui)
add_importlibs(smss ntdll)
add_pch(smss smss.h SOURCE)
add_cd_file(TARGET smss DESTINATION reactos/system32 FOR all)

View file

@ -6,13 +6,11 @@ list(APPEND SOURCE
setup.c
winlogon.c
wlx.c
winlogon.rc)
add_executable(winlogon ${SOURCE})
winlogon.h)
add_executable(winlogon ${SOURCE} winlogon.rc)
target_link_libraries(winlogon wine)
set_module_type(winlogon win32gui)
add_importlibs(winlogon user32 advapi32 userenv secur32 msvcrt kernel32 ntdll)
add_pch(winlogon winlogon.h)
add_pch(winlogon winlogon.h SOURCE)
add_cd_file(TARGET winlogon DESTINATION reactos/system32 FOR all)