-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
41 lines (34 loc) · 953 Bytes
/
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
cmake_minimum_required(VERSION 3.12)
project(PhasarExttoolTest)
set(CMAKE_EXPORT_COMPILE_COMMANDS YES)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# Build a small test tool to show how phasar may be used
add_executable(myphasartool
myphasartool.cpp
)
find_package(phasar)
include_directories(${PHASAR_INCLUDE_DIR})
link_directories(${PHASAR_LIBRARY_DIR})
target_link_libraries(myphasartool
LINK_PUBLIC
phasar::phasar_config
phasar::phasar_controller
phasar::phasar_db
phasar::phasar_experimental
phasar::phasar_clang
phasar::phasar_controlflow
phasar::phasar_ifdside
phasar::phasar_mono
phasar::phasar_passes
phasar::phasar_pointer
phasar::phasar_typehierarchy
phasar::phasar_phasarllvm_utils
# phasar::phasar_utils #already introduced through phasar_clang
)
install(TARGETS myphasartool
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)