-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
23 lines (19 loc) · 1.05 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
cmake_minimum_required(VERSION 3.24)
project(sakora)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -Wextra -pedantic -Wimplicit-fallthrough -Wsequence-point -Wswitch-unreachable -Wstringop-truncation -Wbool-compare -Wtautological-compare -Wfloat-equal -Wshadow=global -Wpointer-arith -Wpointer-compare -Wcast-align -Wcast-qual -Wwrite-strings -Wdangling-else -Wlogical-op -Wconversion -Werror")
file(GLOB SRC_FILES
"main.cpp",
"sakConsole/*.h", "sakConsole/*.cpp",
"error/*.h", "error/*.cpp",
"Frontend/lexer/*.h", "Frontend/lexer/*.cpp",
"Frontend/parser/*.h", "Frontend/parser/*.cpp",
"Backend/visitor/*.h", "Backend/visitor/*.cpp",
"Backend/type/*.h", "Backend/type/*.cpp",
"Backend/scope/*.h", "Backend/scope/*.cpp",
"Backend/object/*.h", "Backend/object/*.cpp",
"Backend/env/*.h", "Backend/env/*.cpp",
"Backend/sakVM/*.h", "Backend/sakVM/*.cpp",
"Test/*.h", "Test/*.cpp"
)
add_executable(${CMAKE_PROJECT_NAME} ${SRC_FILES} )