2010-09-28 13:41:23 +00:00
|
|
|
|
2010-10-03 21:57:08 +00:00
|
|
|
include_directories(
|
|
|
|
BEFORE .
|
|
|
|
${REACTOS_SOURCE_DIR}/subsystems/win32/csrss/include
|
|
|
|
${REACTOS_SOURCE_DIR}/include/reactos/subsys
|
|
|
|
${REACTOS_SOURCE_DIR}/include/reactos/drivers
|
|
|
|
${REACTOS_SOURCE_DIR}/dll/cpl/console)
|
2010-09-28 13:41:23 +00:00
|
|
|
|
|
|
|
spec2def(win32csr ${CMAKE_CURRENT_SOURCE_DIR}/win32csr.spec ${CMAKE_CURRENT_BINARY_DIR}/win32csr.def)
|
|
|
|
|
|
|
|
set_rc_compiler()
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
alias.c
|
|
|
|
appswitch.c
|
|
|
|
coninput.c
|
|
|
|
conoutput.c
|
|
|
|
console.c
|
|
|
|
desktopbg.c
|
|
|
|
dllmain.c
|
|
|
|
exitros.c
|
|
|
|
guiconsole.c
|
|
|
|
handle.c
|
|
|
|
harderror.c
|
|
|
|
lineinput.c
|
|
|
|
tuiconsole.c
|
|
|
|
win32csr.rc)
|
|
|
|
|
|
|
|
add_library(win32csr SHARED ${CMAKE_CURRENT_BINARY_DIR}/win32csr_w32csr.h.gch ${SOURCE})
|
|
|
|
|
|
|
|
target_link_libraries(win32csr
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/win32csr.def
|
|
|
|
win32ksys
|
|
|
|
pseh)
|
|
|
|
|
|
|
|
set_module_type(win32csr win32dll)
|
|
|
|
|
2010-10-03 21:57:08 +00:00
|
|
|
add_importlibs(win32csr user32 gdi32 advapi32 psapi kernel32 ntdll)
|
2010-09-28 13:41:23 +00:00
|
|
|
|
|
|
|
add_pch(win32csr ${CMAKE_CURRENT_SOURCE_DIR}/w32csr.h ${SOURCE})
|
|
|
|
|
2010-10-03 21:57:08 +00:00
|
|
|
add_dependencies(win32csr win32csr_def bugcodes)
|