[CMAKE]
[reactos.git] / subsystems / win32 / csrss / win32csr / CMakeLists.txt
1 add_definitions(-D_DLL -D__USE_CRTIMP)
2
3 include_directories(
4 BEFORE .
5 ${REACTOS_SOURCE_DIR}/subsystems/win32/csrss/include
6 ${REACTOS_SOURCE_DIR}/include/reactos/subsys
7 ${REACTOS_SOURCE_DIR}/include/reactos/drivers
8 ${REACTOS_SOURCE_DIR}/dll/cpl/console)
9
10 spec2def(win32csr.dll win32csr.spec)
11
12 set_rc_compiler()
13
14 list(APPEND SOURCE
15 alias.c
16 coninput.c
17 conoutput.c
18 console.c
19 desktopbg.c
20 dllmain.c
21 exitros.c
22 file.c
23 guiconsole.c
24 handle.c
25 harderror.c
26 lineinput.c
27 tuiconsole.c
28 win32csr.rc
29 ${CMAKE_CURRENT_BINARY_DIR}/win32csr.def)
30
31 add_library(win32csr SHARED ${CMAKE_CURRENT_BINARY_DIR}/win32csr_w32csr.h.gch ${SOURCE})
32
33 target_link_libraries(win32csr
34 win32ksys
35 ${PSEH_LIB})
36
37 set_module_type(win32csr win32dll)
38
39 add_importlibs(win32csr user32 gdi32 advapi32 psapi msvcrt kernel32 ntdll)
40
41 add_pch(win32csr ${CMAKE_CURRENT_SOURCE_DIR}/w32csr.h ${SOURCE})
42
43 add_dependencies(win32csr bugcodes)
44 add_cd_file(TARGET win32csr DESTINATION reactos/system32 FOR all)