-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
47 lines (36 loc) · 1.54 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
46
47
cmake_minimum_required(VERSION 3.13)
project(turing LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
# add_compile_options(-fsanitize=address)
# add_link_options(-fsanitize=address)
# add_compile_options(-fsanitize=undefined)
# add_link_options(-fsanitize=undefined)
include_directories(turing-project/src)
add_executable(${CMAKE_PROJECT_NAME})
target_sources(${CMAKE_PROJECT_NAME}
PRIVATE
turing-project/src/main.cpp
turing-project/src/turing/cli/cli.cpp
turing-project/src/turing/cli/exception.cpp
turing-project/src/turing/log/log.cpp
turing-project/src/turing/machine/direction.cpp
turing-project/src/turing/machine/exception.cpp
turing-project/src/turing/machine/machine.cpp
turing-project/src/turing/machine/tape.cpp
turing-project/src/turing/parser/parser.cpp
turing-project/src/turing/parser/statement_parser.cpp
turing-project/src/turing/util/file.cpp
turing-project/src/turing/util/string.cpp
)
add_executable(test_statement_parser turing-project/test/turing/parser/statement_parser_test.cpp
turing-project/src/turing/machine/direction.cpp
turing-project/src/turing/parser/statement_parser.cpp
turing-project/src/turing/util/file.cpp
turing-project/src/turing/util/string.cpp
)
add_executable(test_number turing-project/test/turing/util/number_test.cpp)
add_executable(test_string turing-project/test/turing/util/string_test.cpp
turing-project/src/turing/util/string.cpp)