diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..326d042 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,31 @@ +cmake_minimum_required(VERSION 3.7) +project(WrampToolchain) + +set(CMAKE_CXX_STANDARD 17) + +set(INST_FILES + instructions.h + object_file.h + instructions.cpp +) + +set(WASM_FILES + assembler.cpp +) + +set(WLINK_FILES + linker.cpp +) + +set(WOBJ_FILES + objectViewer.cpp +) + +# Cheap trick to pull in all .h files in the immediate folder +include_directories( + ${CMAKE_SOURCE_DIR} +) + +add_executable(wasm ${WASM_FILES} ${INST_FILES}) +add_executable(wlink ${WLINK_FILES} ${INST_FILES}) +add_executable(wobj ${WOBJ_FILES} ${INST_FILES})