reactos/subsystems/win32/csrss/win32csr/CMakeLists.txt
Jérôme Gardou 4ee1da42f1 [CMAKE]
- rewrite spec2def macro because
1. cmake gracefully handles def files as source files
2. cmake gracefully handles autogenerated files as source
3. it did not take into account the fact that all shared libraries haven't the .dll extension

svn path=/branches/cmake-bringup/; revision=49358
2010-10-30 16:08:19 +00:00

44 lines
950 B
CMake

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)
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)