Skip to content

Commit

Permalink
Added CMakeLists.txt for Windows build
Browse files Browse the repository at this point in the history
Builds on Windows with VS2019
CMake version is possibly set higher than necessary
  • Loading branch information
CasperTheCat committed Jan 18, 2021
1 parent 87a230a commit ca1b297
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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})

0 comments on commit ca1b297

Please sign in to comment.