Add source files and cmakelist
This commit is contained in:
parent
e0e31ec7ca
commit
434fbe4778
4 changed files with 26 additions and 0 deletions
26
CMakeLists.txt
Normal file
26
CMakeLists.txt
Normal file
|
@ -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)
|
0
src/rve.cpp
Normal file
0
src/rve.cpp
Normal file
0
src/vm.cpp
Normal file
0
src/vm.cpp
Normal file
0
src/vm.hpp
Normal file
0
src/vm.hpp
Normal file
Loading…
Reference in a new issue