mirror of
https://github.com/topjohnwu/CPI.git
synced 2024-11-27 05:20:31 +00:00
23 lines
426 B
CMake
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)
|