2022-03-11 16:00:09 +00:00
|
|
|
cmake_minimum_required(VERSION 3.8...3.22)
|
|
|
|
project(sapphire-compiler LANGUAGES CXX)
|
|
|
|
|
|
|
|
set(CXX_STANDARD_REQUIRED 17)
|
|
|
|
|
|
|
|
add_executable(
|
|
|
|
sapphirec
|
|
|
|
src/sapphire.cpp
|
|
|
|
src/Lexer.cpp
|
|
|
|
src/Lexer.h
|
|
|
|
src/Token.h
|
|
|
|
src/Token.cpp
|
|
|
|
src/Location.h
|
|
|
|
src/Location.cpp
|
|
|
|
src/Error.h
|
|
|
|
src/Error.cpp
|
|
|
|
src/StringConversion.h
|
|
|
|
src/StringConversion.cpp
|
|
|
|
src/FormatString/FormatString.hpp
|
|
|
|
src/FileIO.h
|
|
|
|
src/FileIO.cpp
|
|
|
|
src/Importer.cpp
|
|
|
|
src/Importer.h
|
|
|
|
src/Arguments.cpp
|
|
|
|
src/Arguments.h
|
|
|
|
src/Normalizer.cpp
|
|
|
|
src/Normalizer.h
|
2022-05-28 18:44:26 +00:00
|
|
|
src/ASTNode.cpp
|
|
|
|
src/ASTNode.h
|
|
|
|
src/replace.cpp
|
|
|
|
src/replace.h
|
2022-03-11 16:00:09 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(sapphirec PUBLIC src)
|
|
|
|
target_include_directories(sapphirec PUBLIC src/tclap-1.2.5/include)
|