Skip to content

External Dependencies Inclusion

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB Bug Reports External Dependencies Inclusion

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8643
    araeli
    Participant

    Hello everyone,
    I tried to link OpenLB through my CMakeLists. Also if the library compiles and it is linked (I use QT as IDE, I can read olb headers from my main.cpp) I am not able to link the external dependencies for OpenLB files. Does anyone support the correct inclusion of OpenLB in CMakeLists file?

    Thank you in advance
    Alice

    #8678
    Adrian
    Keymaster

    OpenLB is an almost entirely header-only framework due to its heavy use of template metaprogramming. You should be able to include the external dependencies (zlib, tinyxml) straight from Cmake, they only need to be available in the include path and linked.
    The biggest issue will be to build the core library (mostly MPI wrappers and some other standard utilities) in CMake.

    A student of mine worked on CMake support a couple of months back and did not encounter any issues, the reason why we did not include this work in the release is that it partially duplicated the entire existing build system.

    #8681
    araeli
    Participant

    Dear Adrian,
    thank you for your feedback! I will check the correct linking of dependencies.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.