-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
46 lines (36 loc) · 983 Bytes
/
CMakeLists.txt
File metadata and controls
46 lines (36 loc) · 983 Bytes
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
cmake_minimum_required(VERSION 3.20)
project(wheel VERSION 0.0.1)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(WHEEL_DEBUG)
add_compile_definitions(WHEEL_DEBUG=ON)
endif()
if(WHEEL_ASSERTION)
add_compile_definitions(WHEEL_ASSERTION=ON)
endif()
if(WHEEL_SOURCE_LOCATION)
add_compile_definitions(WHEEL_SOURCE_LOCATION=ON)
endif()
if(WHEEL_EXPERIMENT)
add_compile_definitions(WHEEL_EXPERIMENT=ON)
endif()
if(WHEEL_NO_FAIL_FAST)
add_compile_definitions(WHEEL_NO_FAIL_FAST=ON)
endif()
if(WHEEL_TEST_BY_CONTEXT)
add_compile_definitions(WHEEL_TEST_BY_CONTEXT=ON)
endif()
if(WHEEL_SMALL_VEC)
add_compile_definitions(WHEEL_SMALL_VEC=ON)
endif()
add_subdirectory(wheel_utils)
add_subdirectory(wheel_memory)
add_subdirectory(wheel_lexer)
add_subdirectory(wheel_parser)
add_subdirectory(wheel_semantic)
add_subdirectory(wheel_interpreter)
add_subdirectory(wheel_cli)
include(CTest)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()