-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
45 lines (38 loc) · 1.39 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Minimum required version of CMake
cmake_minimum_required(VERSION 3.22)
# Project name and version
project(Simple VERSION 1.0)
# Specify the C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
# Add the include directory to the search path
include_directories(${PROJECT_SOURCE_DIR}/Include)
# Add the executable target
add_library(simple_lib
src/parser.cc
# nodes
src/node/add_node.cc
src/node/constant_node.cc
src/node/divnode.cc
src/node/minus_node.cc
src/node/mul_node.cc
src/node/node.cc
src/node/return_node.cc
src/node/start_node.cc
src/node/sub_node.cc
src/node/bool_node.cc
src/node/proj_node.cc
src/node/not_node.cc
src/node/multi_node.cc
src/node/scope_node.cc
# type
src/type/integer_type.cc
src/type/type.cc
src/type/tuple_type.cc
# utils
src/utils.cc
src/graphVisualizer.cc)
set(CMAKE_BUILD_TYPE Debug)
add_subdirectory(tests)
add_executable(Simple src/main.cc)
target_link_libraries(Simple PUBLIC simple_lib)