Skip to content

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.

Clone this wiki locally