Create Qt project build via Cmake
-
wrote on 24 Apr 2019, 17:57 last edited by
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
-
Using Qt with CMake is documented e.g. here: https://doc.qt.io/qt-5/cmake-manual.html
wrote on 24 Apr 2019, 18:29 last edited by@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.
-
If you use target_link_libraries properly cmake does this for you.
wrote on 24 Apr 2019, 19:11 last edited by@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
-
Maybe taking a look at the cmake documentation will help: add_library
wrote on 25 Apr 2019, 14:14 last edited by mandruk1331This post is deleted!
1/7