b133ccb5bb99846afcec846500e8a4b194013676
[reactos.git] / drivers / base / kdcom / CMakeLists.txt
1
2
3
4 spec2def(kdcom ${CMAKE_CURRENT_SOURCE_DIR}/kdcom.spec ${CMAKE_CURRENT_BINARY_DIR}/kdcom.def)
5
6 if(ARCH MATCHES i386)
7 list(APPEND SOURCE i386/kdbg.c)
8 elseif(ARCH MATCHES amd64)
9 list(APPEND SOURCE i386/kdbg.c)
10 elseif(ARCH MATCHES arm)
11 list(APPEND SOURCE arm/kdbg.c)
12 endif(ARCH MATCHES i386)
13
14 add_library(kdcom SHARED ${SOURCE})
15
16 set_target_properties(kdcom PROPERTIES LINK_FLAGS "-Wl,-entry,0 -Wl,--image-base,0x00010000")
17
18 target_link_libraries(kdcom
19 ${CMAKE_CURRENT_BINARY_DIR}/kdcom.def
20 -lntoskrnl
21 -lhal)
22
23 add_dependencies(kdcom kdcom_def psdk buildno_header bugcodes)