Skip to content

Using PhASAR as a Library

LinusJungemann edited this page Jul 29, 2020 · 3 revisions

To get started using PhASAR as a library 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