-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
31 lines (26 loc) · 818 Bytes
/
CMakeLists.txt
File metadata and controls
31 lines (26 loc) · 818 Bytes
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
cmake_minimum_required(VERSION 3.10.3)
project(CFGPrinter)
set(CMAKE_CXX_STANDARD 17)
include_directories(include)
find_package(LLVM REQUIRED CONFIG)
add_definitions(${LLVM_DEFINITIONS})
include_directories(${LLVM_INCLUDE_DIRS})
include(AddLLVM)
# The plugin expects to not link against the Support and Core libraries,
# but expects them to exist in the process loading the plugin. This doesn't
# work with DLLs on Windows (where a shared library can't have undefined
# references), so just skip this on Windows.
if (NOT WIN32 AND NOT CYGWIN)
add_llvm_pass_plugin(CFGPrinter
src/CFGPrinter.cpp
src/CFGFreqPrinter.cpp
src/DomTreePrinter.cpp
src/HeatCallPrinter.cpp
src/HeatCFGPrinter.cpp
src/HeatUtils.cpp
src/CSVUtil.cpp
DEPENDS
intrinsics_gen
BUILDTREE_ONLY
)
endif()