CPI/CMakeLists.txt
2018-12-13 15:14:30 -05:00

23 lines
426 B
CMake

cmake_minimum_required(VERSION 3.4.3)
project(CPI)
find_package(LLVM REQUIRED CONFIG)
list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_DIR}")
include(AddLLVM)
set(CMAKE_CXX_STANDARD 14)
add_definitions(${LLVM_DEFINITIONS})
include_directories(${LLVM_INCLUDE_DIRS})
if (APPLE)
list (APPEND CMAKE_CXX_FLAGS "-undefined dynamic_lookup")
endif(APPLE)
add_library(
safe_rt
STATIC
safe_rt/rt.c
)
add_subdirectory(pass)