mirror of
https://github.com/reactos/reactos.git
synced 2024-11-05 22:26:39 +00:00
e1f1113670
Allow no entrypoint for MSVC and use no entrypoint in genincdata to silence warning svn path=/branches/cmake-bringup/; revision=49697
25 lines
596 B
CMake
25 lines
596 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 MATCHES i386)
|
|
set(_filename ks386)
|
|
elseif(ARCH MATCHES amd64)
|
|
set(_filename ksamd64)
|
|
endif()
|
|
|
|
add_custom_command(
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_filename}.inc
|
|
COMMAND native-geninc ${CMAKE_CURRENT_BINARY_DIR}/genincdata.dll ${CMAKE_CURRENT_BINARY_DIR}/${_filename}.inc ${OPT_MS}
|
|
DEPENDS genincdata)
|
|
|
|
add_custom_target(asm
|
|
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_filename}.inc)
|