-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
42 lines (31 loc) · 1.12 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
cmake_minimum_required(VERSION 3.5)
# add cling dependencies
# https://github.com/root-project/cling/tree/master/tools/demo
set(LLVM_NO_DEAD_STRIP 1)
project(incrementalptxjit)
set (CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
project(incrementalptxjit)
find_package(cling REQUIRED)
include_directories(include/)
add_executable(incrementalptxjit
src/main.cpp
src/argc_helper.cpp
src/backend.cpp)
target_link_libraries(incrementalptxjit
clingInterpreter
LLVMSupport
LLVMCore
LLVMNVPTXAsmPrinter
LLVMNVPTXCodeGen
LLVMNVPTXDesc
LLVMNVPTXInfo
#LLVMTarget
LLVMMC
)
target_compile_options(incrementalptxjit PUBLIC
-DLLVMDIR="${LLVM_INSTALL_PREFIX}"
-I${LLVM_INSTALL_PREFIX}/include)
set_target_properties(incrementalptxjit
PROPERTIES ENABLE_EXPORTS 1)
install(TARGETS incrementalptxjit RUNTIME DESTINATION bin)