[BASESRV][CSRSRV]

* Prepare the CMake scripts for PCH.
CORE-7716

svn path=/trunk/; revision=62088
This commit is contained in:
Amine Khaldi 2014-02-09 23:03:24 +00:00
parent f553e50746
commit 8d7af385aa
2 changed files with 10 additions and 4 deletions

View file

@ -10,10 +10,13 @@ list(APPEND SOURCE
sndsntry.c
vdm.c
nls.c
basesrv.h)
add_library(basesrv SHARED
${SOURCE}
basesrv.rc
${CMAKE_CURRENT_BINARY_DIR}/basesrv.def)
add_library(basesrv SHARED ${SOURCE})
set_module_type(basesrv win32dll UNICODE ENTRYPOINT DllMain 12)
#############################################
## HACK FOR MSVC COMPILATION WITH win32dll ##
@ -23,6 +26,6 @@ set_subsystem(basesrv console)
target_link_libraries(basesrv ${PSEH_LIB})
add_importlibs(basesrv csrsrv ntdll)
add_pch(basesrv basesrv.h SOURCE)
add_dependencies(basesrv bugcodes)
add_cd_file(TARGET basesrv DESTINATION reactos/system32 FOR all)

View file

@ -12,17 +12,20 @@ list(APPEND SOURCE
session.c
thredsup.c
wait.c
srv.h)
add_library(csrsrv SHARED
${SOURCE}
csrsrv.rc
${CMAKE_CURRENT_BINARY_DIR}/csrsrv.def)
add_library(csrsrv SHARED ${SOURCE})
set_module_type(csrsrv nativedll)
target_link_libraries(csrsrv ${PSEH_LIB} smlib)
add_importlibs(csrsrv ntdll smdll)
add_pch(csrsrv srv.h)
add_pch(csrsrv srv.h SOURCE)
add_dependencies(csrsrv psdk bugcodes)
add_cd_file(TARGET csrsrv DESTINATION reactos/system32 FOR all)