-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added CMakeLists.txt for Windows build
Builds on Windows with VS2019 CMake version is possibly set higher than necessary
- Loading branch information
1 parent
87a230a
commit ca1b297
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}) |