mirror of
https://github.com/topjohnwu/CPI.git
synced 2024-11-26 21:10:25 +00:00
Upload base structure
This commit is contained in:
parent
2b5370c292
commit
848163c388
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
/build
|
||||
/cmake-build-debug
|
||||
/.idea
|
19
CMakeLists.txt
Normal file
19
CMakeLists.txt
Normal file
@ -0,0 +1,19 @@
|
||||
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_llvm_loadable_module(
|
||||
LLVMCPI
|
||||
CPI.cpp
|
||||
)
|
Loading…
Reference in New Issue
Block a user