mirror of
https://github.com/reactos/reactos.git
synced 2025-01-06 06:20:13 +00:00
4f0b8d3db0
svn path=/branches/ntvdm/; revision=59241
27 lines
647 B
CMake
27 lines
647 B
CMake
|
|
add_library(genincdata SHARED genincdata.c)
|
|
|
|
set_entrypoint(genincdata 0)
|
|
add_dependencies(genincdata bugcodes)
|
|
|
|
if(MSVC)
|
|
set(OPT_MS "-ms")
|
|
else()
|
|
set(OPT_MS "")
|
|
endif()
|
|
|
|
if(ARCH STREQUAL "i386")
|
|
set(_filename ks386)
|
|
elseif(ARCH STREQUAL "amd64")
|
|
set(_filename ksamd64)
|
|
endif()
|
|
|
|
get_target_property(genincdata_dll genincdata LOCATION)
|
|
|
|
add_custom_command(
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_filename}.inc
|
|
COMMAND native-geninc ${genincdata_dll} ${CMAKE_CURRENT_BINARY_DIR}/${_filename}.inc ${OPT_MS}
|
|
DEPENDS genincdata native-geninc)
|
|
|
|
add_custom_target(asm
|
|
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_filename}.inc)
|