mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-30 00:00:15 +01:00
18 lines
585 B
CMake
18 lines
585 B
CMake
cmake_minimum_required(VERSION 3.7)
|
|
|
|
configure_file(config.h.in config.h)
|
|
configure_file(config.asm.in config.asm)
|
|
|
|
# Show include files in IDE
|
|
file(GLOB_RECURSE HERMIT_INCLUDES "*")
|
|
add_custom_target(hermit_includes_ide SOURCES ${HERMIT_INCLUDES})
|
|
|
|
# install generated config files when building libhermit for bootstrapping
|
|
install(FILES
|
|
${GENERATED_CONFIG_DIR}/hermit/config.h
|
|
${GENERATED_CONFIG_DIR}/hermit/config.asm
|
|
DESTINATION ${TARGET_ARCH}/include/hermit/
|
|
COMPONENT bootstrap)
|
|
|
|
# More of a workaround?
|
|
file(COPY ibv.h DESTINATION "${LOCAL_PREFIX_ARCH_INCLUDE_DIR}/hermit")
|