mirror of
https://github.com/reactos/reactos.git
synced 2025-03-10 18:24:02 +00:00

Revert incorrect auto import change and use proper definitions instead. svn path=/branches/cmake-bringup/; revision=49476
44 lines
996 B
CMake
44 lines
996 B
CMake
add_definitions(-D_DLL -D__USE_CRTIMP)
|
|
|
|
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)
|
|
|
|
spec2def(win32csr.dll win32csr.spec)
|
|
|
|
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
|
|
${CMAKE_CURRENT_BINARY_DIR}/win32csr.def)
|
|
|
|
add_library(win32csr SHARED ${CMAKE_CURRENT_BINARY_DIR}/win32csr_w32csr.h.gch ${SOURCE})
|
|
|
|
target_link_libraries(win32csr
|
|
win32ksys
|
|
${PSEH_LIB})
|
|
|
|
set_module_type(win32csr win32dll)
|
|
|
|
add_importlibs(win32csr user32 gdi32 advapi32 psapi kernel32 ntdll)
|
|
|
|
add_pch(win32csr ${CMAKE_CURRENT_SOURCE_DIR}/w32csr.h ${SOURCE})
|
|
|
|
add_dependencies(win32csr bugcodes)
|
|
add_cab_target(win32csr 1)
|