The best way to get KFoundation is by cloning its git repository to your local machine.
Alternatively, you can download the latest release from:
To install, you need
CMake 3.0 or above
A standard C++98 or above compiler (gcc or clang would be just right)
$git checkout beta
$sudo make install