[CMAKE]
[reactos.git] / subsystems / win32 / csrss / csrsrv / CMakeLists.txt
1
2 include_directories(${REACTOS_SOURCE_DIR}/subsystems/win32/csrss/include)
3 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
4
5 spec2def(csrsrv.dll csrsrv.spec)
6
7 list(APPEND SOURCE
8 api/process.c
9 api/user.c
10 api/wapi.c
11 procsup.c
12 thredsup.c
13 init.c
14 ${CMAKE_CURRENT_BINARY_DIR}/csrsrv.def)
15
16 add_library(csrsrv SHARED ${CMAKE_CURRENT_BINARY_DIR}/csrsrv_srv.h.gch ${SOURCE})
17
18 target_link_libraries(csrsrv ${PSEH_LIB})
19
20 set_module_type(csrsrv nativedll)
21
22 if(MSVC)
23 set_entrypoint(csrsrv DllMainCRTStartup)
24 endif()
25
26
27 add_importlibs(csrsrv ntdll smdll)
28
29 add_pch(csrsrv ${CMAKE_CURRENT_SOURCE_DIR}/srv.h ${SOURCE})
30
31 add_dependencies(csrsrv psdk bugcodes)
32 add_cd_file(TARGET csrsrv DESTINATION reactos/system32)
33 add_importlib_target(csrsrv.spec)