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