-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
81 lines (76 loc) · 1.46 KB
/
CMakeLists.txt
File metadata and controls
81 lines (76 loc) · 1.46 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
cmake_minimum_required(VERSION 3.17 FATAL_ERROR)
project(Sapphire CXX)
set(CMAKE_CXX_STANDARD 17)
#find_package(LLVM REQUIRED)
add_executable(${PROJECT_NAME}
src/compiler/ast.cpp
src/compiler/ast.hpp
src/compiler/parser.cpp
src/compiler/parser.hpp
src/main.cpp)
#[[llvm_map_components_to_libnames(LLVM_LIBS
X86CodeGen
X86AsmParser
X86Desc
X86Info
TextAPI
OrcJIT
JITLink
ObjectYAML
WindowsManifest
Coverage
TableGen
LTO
Passes
ObjCARCOpts
Coroutines
LibDriver
XRay
MIRParser
ipo
Instrumentation
Vectorize
Linker
IRReader
AsmParser
Symbolize
DebugInfoPDB
FuzzMutate
LineEditor
MCA
DebugInfoGSYM
GlobalISel
SelectionDAG
AsmPrinter
DebugInfoDWARF
MCJIT
Interpreter
ExecutionEngine
RuntimeDyld
CodeGen
Target
ScalarOpts
InstCombine
AggressiveInstCombine
TransformUtils
BitWriter
Analysis
ProfileData
DlltoolDriver
Option
Object
MCParser
MC
DebugInfoCodeView
DebugInfoMSF
BitReader
Core
Remarks
BinaryFormat
BitstreamReader
Support
Demangle)]]
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "sphc")
target_include_directories(${PROJECT_NAME} PRIVATE "src" #[["${LLVM_INCLUDE_DIRS}"]])
#[[target_compile_definitions(${PROJECT_NAME} PRIVATE ${LLVM_DEFINITIONS})
target_link_libraries(${PROJECT_NAME} PRIVATE ${LLVM_LIBS})]]