bf7aa82ae970c21309f986a5829c5dfc652806bc
[reactos.git] / reactos / subsystems / win / basesrv / CMakeLists.txt
1
2 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
3
4 spec2def(basesrv.dll basesrv.spec ADD_IMPORTLIB)
5
6 list(APPEND SOURCE
7 appcompat.c
8 dosdev.c
9 init.c
10 proc.c
11 sndsntry.c
12 vdm.c
13 nls.c
14 basesrv.h)
15
16 add_library(basesrv SHARED
17 ${SOURCE}
18 basesrv.rc
19 ${CMAKE_CURRENT_BINARY_DIR}/basesrv.def)
20
21 set_module_type(basesrv win32dll UNICODE ENTRYPOINT DllMain 12)
22 #############################################
23 ## HACK FOR MSVC COMPILATION WITH win32dll ##
24 set_subsystem(basesrv console)
25 ################# END HACK #################
26
27 target_link_libraries(basesrv ${PSEH_LIB})
28 add_importlibs(basesrv csrsrv ntdll)
29 add_pch(basesrv basesrv.h SOURCE)
30 add_dependencies(basesrv bugcodes)
31 add_cd_file(TARGET basesrv DESTINATION reactos/system32 FOR all)