1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00
libhermit/include/hermit/CMakeLists.txt

16 lines
489 B
Text
Raw Permalink Normal View History

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)