Linking To Kynema

Kynema is fully discoverable using CMake’s find_package utility. Simply add the following line to your CMakeLists.txt file.

find_package(Kynema REQUIRED)

This utility will search your path for your Kynema installation and load its target information. To link against Kynema, add to your CMakeLists.txt the line

target_link_libraries(my_executable PRIVATE Kynema::kynema_library)

This line will link to Kynema and all of its dependencies - there is no need to include any transitive dependencies, such as Kokkos, explicitly.