From 770c8dcc4da5b72be6fdcafb6d7c36148e0e71fe Mon Sep 17 00:00:00 2001 From: Pimpest <82343504+Pimpest@users.noreply.github.com> Date: Fri, 6 Dec 2024 17:33:52 +0100 Subject: [PATCH] Added Cmake file --- CmakeLists.txt | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 CmakeLists.txt diff --git a/CmakeLists.txt b/CmakeLists.txt new file mode 100644 index 0000000..94b0663 --- /dev/null +++ b/CmakeLists.txt @@ -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}) \ No newline at end of file