mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00

- rewrite spec2def macro because 1. cmake gracefully handles def files as source files 2. cmake gracefully handles autogenerated files as source 3. it did not take into account the fact that all shared libraries haven't the .dll extension svn path=/branches/cmake-bringup/; revision=49358
16 lines
344 B
CMake
16 lines
344 B
CMake
|
|
spec2def(kdcom.dll kdcom.spec)
|
|
|
|
add_library(kdcom SHARED
|
|
kdcom.c
|
|
kddll.c
|
|
kdserial.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/kdcom.def)
|
|
|
|
set_target_properties(kdcom PROPERTIES LINK_FLAGS "-Wl,-entry,0 -Wl,--image-base,0x00010000")
|
|
|
|
target_link_libraries(kdcom
|
|
-lntoskrnl
|
|
-lhal)
|
|
|
|
add_dependencies(kdcom psdk buildno_header bugcodes)
|