Building programs using Khiva with CMake¶

In order to build a program using the Khiva library with the CMake build system you need just a couple of lines in your CmakeLists.txt:

cmake_minimum_required(VERSION 3.1)
project(example)

find_package(Khiva REQUIRED)


find_package(Khiva REQUIRED) may be used when Khiva was installed system wide. Please follow the installation instructions for your operating system contained at the Getting Started.