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