reactos/drivers/base/kdcom/CMakeLists.txt
Sylvain Petreolle da55a789c3 [CMAKE]
Add minicd target.
This partial bootcd target produces a minicd iso,
able to start the install process to the cabinet installation page.

svn path=/branches/cmake-bringup/; revision=49072
2010-10-09 13:54:36 +00:00

24 lines
No EOL
626 B
CMake

spec2def(kdcom ${CMAKE_CURRENT_SOURCE_DIR}/kdcom.spec ${CMAKE_CURRENT_BINARY_DIR}/kdcom.def)
if(ARCH MATCHES i386)
list(APPEND SOURCE i386/kdbg.c)
elseif(ARCH MATCHES amd64)
list(APPEND SOURCE i386/kdbg.c)
elseif(ARCH MATCHES arm)
list(APPEND SOURCE arm/kdbg.c)
endif(ARCH MATCHES i386)
add_library(kdcom SHARED ${SOURCE})
set_target_properties(kdcom PROPERTIES LINK_FLAGS "-Wl,-entry,0 -Wl,--image-base,0x00010000")
target_link_libraries(kdcom
${CMAKE_CURRENT_BINARY_DIR}/kdcom.def
-lntoskrnl
-lhal)
add_dependencies(kdcom kdcom_def psdk buildno_header bugcodes)
add_minicd_target(kdcom reactos kdcom.dll)