From 434fbe47788091de6bebd46d32a5421d24292571 Mon Sep 17 00:00:00 2001 From: Konstantin Nazarov Date: Fri, 6 Dec 2024 19:48:38 +0000 Subject: [PATCH] Add source files and cmakelist --- CMakeLists.txt | 26 ++++++++++++++++++++++++++ src/rve.cpp | 0 src/vm.cpp | 0 src/vm.hpp | 0 4 files changed, 26 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 src/rve.cpp create mode 100644 src/vm.cpp create mode 100644 src/vm.hpp diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..9803a0c --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,26 @@ +cmake_minimum_required(VERSION 3.28) +project(rve) + +set(CMAKE_CXX_STANDARD 23) +set(CMAKE_EXPORT_COMPILE_COMMANDS true) + +message(STATUS "Build type: ${CMAKE_BUILD_TYPE}") + +set (CMAKE_CXX_FLAGS "-fno-exceptions -static-libgcc -static-libstdc++ -Werror -Wall -Wunused-result -Wno-unused-function -Wno-unused-variable -fno-omit-frame-pointer -fsanitize=address -Wno-c99-designator") + +add_library(vm_lib) +target_sources(vm_lib + PRIVATE + src/vm.cpp + + PUBLIC + FILE_SET HEADERS + BASE_DIRS src + FILES + src/vm.hpp +) + +add_executable(rve src/rve.cpp) +target_link_libraries(rve vm_lib) + +install(TARGETS rve) diff --git a/src/rve.cpp b/src/rve.cpp new file mode 100644 index 0000000..e69de29 diff --git a/src/vm.cpp b/src/vm.cpp new file mode 100644 index 0000000..e69de29 diff --git a/src/vm.hpp b/src/vm.hpp new file mode 100644 index 0000000..e69de29