Added Cmake file
This commit is contained in:
25
CmakeLists.txt
Normal file
25
CmakeLists.txt
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.12)
|
||||||
|
|
||||||
|
# Project name and C++ standard
|
||||||
|
project(fsh LANGUAGES CXX)
|
||||||
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
|
# Source files
|
||||||
|
set(FSH_SOURCE_FILES
|
||||||
|
src/fsh.cpp
|
||||||
|
src/lexer.cpp
|
||||||
|
src/ast/ast.cpp
|
||||||
|
src/ast/ast_exec.cpp
|
||||||
|
src/ast/ast_print.cpp
|
||||||
|
src/util/input.cpp
|
||||||
|
src/util/text.cpp
|
||||||
|
src/cmd/cmd_base.cpp
|
||||||
|
src/main.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
# Include directories
|
||||||
|
include_directories(include)
|
||||||
|
|
||||||
|
# Add executable
|
||||||
|
add_executable(fsh ${FSH_SOURCE_FILES})
|
||||||
Reference in New Issue
Block a user