|
TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
|
TRIQS is a rather big library that can take a considerable amount of time to compile. We therefore recommend to build and install TRIQS beforehand (see Installation) and then link against it (see find_package).
The following assumes that the project using TRIQS is CMake-based.
If you have already installed TRIQS on your system by following the instructions from the Installation page, you can make use of CMake's find_package command.
Let's assume that TRIQS has been installed to path_to_install_dir. Then linking your project to TRIQS with CMake is as easy as
In case, CMake cannot find the package, you might have to tell it where to look for the TRIQSConfig.cmake file by setting the variable TRIQS_DIR to path_to_install_dir/lib/cmake/triqs or by sourcing the provided triqsvars.sh before running CMake: