2aaf82c1d3724fa36d21650034b4a06ab9f14bbe
[reactos.git] / reactos / drivers / base / kdgdb / CMakeLists.txt
1
2 spec2def(kdcom.dll kdgdb.spec ADD_IMPORTLIB)
3
4 list(APPEND SOURCE
5 gdb_input.c
6 gdb_receive.c
7 gdb_send.c
8 kdcom.c
9 kdpacket.c
10 utils.c
11 kdgdb.h)
12
13 # TODO: AMD64, ARM...
14 if(ARCH STREQUAL "i386")
15 list(APPEND SOURCE i386_sup.c)
16 endif()
17
18 add_library(kdcom SHARED
19 ${SOURCE}
20 kdgdb.rc
21 ${CMAKE_CURRENT_BINARY_DIR}/kdcom.def)
22
23 set_entrypoint(kdcom 0)
24 set_subsystem(kdcom native)
25 set_image_base(kdcom 0x00010000)
26 add_importlibs(kdcom ntoskrnl hal)
27 target_link_libraries(kdcom cportlib)
28 add_pch(kdcom kdgdb.h SOURCE)
29 add_cd_file(TARGET kdcom DESTINATION reactos/system32 NO_CAB FOR all)