-
Notifications
You must be signed in to change notification settings - Fork 142
Using PhASAR as a Library
Fabian Schiebel edited this page Sep 17, 2023
·
3 revisions
Getting started using PhASAR as a library, first build and install PhASAR as described in the section "Building PhASAR".
To use PhASAR as a library, add
find_package(phasar COMPONENTS componentname REQUIRED)
include_directories(${PHASAR_INCLUDE_DIR})
link_directories(${PHASAR_LIBRARY_DIR})
phasar_config(executablename)
to your CMakeLists.txt file. Make sure to replace componentname
and executablename
. To be able to use PhASAR a C++ standard of 17 is required.
Please refer to the folder examples/use-phasar-as-library/
for a complete example program.
- Home
- Reference Material
- Getting Started:
- Building PhASAR
- Using PhASAR with Docker
- A few uses of PhASAR
- Coding Conventions
- Contributing to PhASAR
- Errors and bug reporting
- Update to Newer LLVM Versions
- OS Support