Solved Create Qt project build via Cmake
-
Hello, I would like to create a build of a qt project using Cmake. My main project depends on a custom static library, which will also be build by Cmake. Can someone tell where to start or provide a code snippet? Thank you in advance
-
Using Qt with CMake is documented e.g. here: https://doc.qt.io/qt-5/cmake-manual.html
-
@Christian-Ehrlicher but how can I set the order of builds, because the main program depends on the library which has to be built previously?
-
If you use target_link_libraries properly cmake does this for you.
-
@Christian-Ehrlicher But how can I create a static library using Cmake? My library uses Qt network headers
-
Maybe taking a look at the cmake documentation will help: add_library
-
This post is deleted!