-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
29 lines (22 loc) · 992 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
cmake_minimum_required(VERSION 3.4.3)
project(PMFixer)
set(CMAKE_BUILD_TYPE "RelWithDebInfo")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g")
# This will find the shared LLVM build.
find_package(LLVM 8.0 REQUIRED CONFIG)
# You don't need to change ${LLVM_CMAKE_DIR} since it is already defined.
list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_DIR}")
include(AddLLVM)
# You don't need to change ${LLVM_DEFINITIONS} since it is already defined.
add_definitions(${LLVM_DEFINITIONS})
# You don't need to change ${LLVM_INCLUDE_DIRS} since it is already defined.
include_directories(${LLVM_INCLUDE_DIRS})
include("${CMAKE_SOURCE_DIR}/cmake/functions.cmake")
add_subdirectory(deps)
# -- This sets these variables so that they're available in the lower scope.
get_property(YAMLCPP_LIBS GLOBAL PROPERTY yaml_cpp_lib_dir)
get_property(YAMLCPP_INCLUDE GLOBAL PROPERTY yaml_cpp_include_dir)
add_subdirectory(src)
add_subdirectory(tests)
add_subdirectory(tools)