forked from WaliDev/WALi-OpenNWA
-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
30 lines (26 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
cmake_minimum_required (VERSION 3.0)
project (wali)
set(CMAKE_PROJECT_NAME "wali")
if(NOT DEFINED CMAKE_EXPORT_COMPILE_COMMANDS)
set(CMAKE_EXPORT_COMPILE_COMMANDS YES)
endif(NOT DEFINED CMAKE_EXPORT_COMPILE_COMMANDS)
if(NOT DEFINED CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif(NOT DEFINED CMAKE_CXX_STANDARD)
if(NOT DEFINED CMAKE_CXX_STANDARD_REQUIRED)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
endif(NOT DEFINED CMAKE_CXX_STANDARD_REQUIRED)
if(NOT DEFINED CMAKE_CXX_FLAGS)
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
endif(NOT DEFINED CMAKE_CXX_FLAGS)
if(NOT DEFINED CMAKE_CXX_EXTENSIONS)
set(CMAKE_CXX_EXTENSIONS OFF)
endif(NOT DEFINED CMAKE_CXX_EXTENSIONS)
if(NOT DEFINED LLVM_MAIN_SRC_DIR)
# Find an include llvm if we build out of tree
find_package(LLVM REQUIRED CONFIG)
find_library(LLVM_LIBRARY NAMES llvm)
include_directories(${LLVM_INCLUDE_DIRS})
link_directories(${LLVM_LIB_PATH} ${LLVM_LIBRARY_DIRS})
endif()
add_subdirectory(Source)