From b51a03a393151473d6be5d42279b0bbf0f30863e Mon Sep 17 00:00:00 2001 From: ProgramSnail Date: Mon, 9 Jun 2025 17:10:56 +0300 Subject: [PATCH] generated cmake lists --- byterun/CMakeLists.txt | 59 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 byterun/CMakeLists.txt diff --git a/byterun/CMakeLists.txt b/byterun/CMakeLists.txt new file mode 100644 index 000000000..964156a31 --- /dev/null +++ b/byterun/CMakeLists.txt @@ -0,0 +1,59 @@ +# this is the build file for project +# it is autogenerated by the xmake build system. +# do not edit by hand. + +# project +cmake_minimum_required(VERSION 3.15.0) +cmake_policy(SET CMP0091 NEW) +project(byterun LANGUAGES ASM CXX C) + +# target +add_executable(byterun "") +set_target_properties(byterun PROPERTIES OUTPUT_NAME "byterun") +set_target_properties(byterun PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/build/linux/x86_64/release") +target_include_directories(byterun PRIVATE + include + ../runtime +) +target_compile_definitions(byterun PRIVATE + WITH_CHECK +) +target_compile_options(byterun PRIVATE + $<$:-m64> + $<$:-m64> + $<$:-O3> + $<$:-O3> +) +if(MSVC) +elseif(Clang) + target_compile_options(byterun PRIVATE -Wall) + target_compile_options(byterun PRIVATE -Wextra) +elseif(Gcc) + target_compile_options(byterun PRIVATE -Wall) + target_compile_options(byterun PRIVATE -Wextra) +endif() +set_target_properties(byterun PROPERTIES CXX_EXTENSIONS OFF) +target_compile_features(byterun PRIVATE cxx_std_20) +set_target_properties(byterun PROPERTIES C_EXTENSIONS OFF) +target_compile_features(byterun PRIVATE c_std_11) +if(MSVC) + set_property(TARGET byterun PROPERTY + MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") +endif() +target_link_options(byterun PRIVATE + -m64 +) +target_sources(byterun PRIVATE + ../runtime/printf.S + src/parser.cpp + src/module_manager.cpp + src/analyzer.cpp + src/cli.cpp + src/compiler.cpp + src/sm_parser.cpp + ../runtime/gc.c + ../runtime/runtime.c + src/types.c + src/interpreter.c +) +