-
Notifications
You must be signed in to change notification settings - Fork 23
/
CMakeLists.txt
41 lines (29 loc) · 958 Bytes
/
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
cmake_minimum_required (VERSION 3.4)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
# We rely on Clang being the CMAKE_{C,CXX}_COMPILER universally, so we need to
# set the relevant variables explicitly in this prelude module before starting
# the project (i.e. we can't look them up based on the LLVM version we find
# later on).
include(LLVMKompilePrelude)
project(KLLVM CXX C)
set(CMAKE_DISABLE_SOURCE_CHANGES ON)
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
include(CTest)
# Needs to be included first so that pkg-config paths are set up when looking
# for dependencies.
include(FixHomebrew)
add_subdirectory(deps)
include(FindDependencies)
include(KLLVMCompilerFlags)
include(SetTriple)
include(RuntimeConfig)
add_subdirectory(bin)
add_subdirectory(bindings)
add_subdirectory(debug)
add_subdirectory(include)
add_subdirectory(lib)
add_subdirectory(tools)
add_subdirectory(runtime)
if(BUILD_TESTS)
add_subdirectory(unittests)
endif()