-
Notifications
You must be signed in to change notification settings - Fork 11
/
CMakeLists.txt
46 lines (35 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
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.4)
project(GSLP)
string(REPLACE "-DNDEBUG" "" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
include(sanitizers.cmake)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
find_package(LLVM REQUIRED CONFIG)
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(LLVM_BUILD_TOOLS ON)
add_definitions(${LLVM_DEFINITIONS})
include_directories(${LLVM_INCLUDE_DIRS})
link_directories(${LLVM_LIBRARY_DIRS})
add_definitions(-fno-rtti)
add_definitions(-std=c++14)
include_directories(gslp)
add_subdirectory(gslp)
configure_file(
${CMAKE_SOURCE_DIR}/test/lit.site.cfg.in
${CMAKE_BINARY_DIR}/test/lit.site.cfg
)
configure_file(
${CMAKE_SOURCE_DIR}/utils/vegen-clang.in
${CMAKE_BINARY_DIR}/vegen-clang
)
configure_file(
${CMAKE_SOURCE_DIR}/utils/vegen-clang.in
${CMAKE_BINARY_DIR}/vegen-clang++
)
configure_file(
${CMAKE_SOURCE_DIR}/utils/vegen-opt.in
${CMAKE_BINARY_DIR}/vegen-opt
)