Use set_module_type() with module type == "module" instead of specifying that the...
[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_module_type(kdcom module IMAGEBASE 0x00010000)
24 set_subsystem(kdcom native)
25 add_importlibs(kdcom ntoskrnl hal)
26 target_link_libraries(kdcom cportlib)
27 add_pch(kdcom kdgdb.h SOURCE)
28 add_cd_file(TARGET kdcom DESTINATION reactos/system32 NO_CAB FOR all)