lib:qt:cmake
Chemin vers Qt
Il faut définir la variable CMAKE_PREFIX_PATH
à C:\Qt\6.9.1\msvc2022_64
pour que CMake trouve toutes les librairies Qt.
Choix du générateur
Utiliser le générateur Ninja
sous Windows. Avec Visual Studio, les MOC vont se re-générer à chaque fois et donc tous les binaires seront systématiquement recompilés :
[build] 1>Checking Build System [build] Automatic MOC and UIC for target VtkTest [build] VtkTest.vcxproj -> ...\VtkTest.exe [build] Building Custom Rule ../CMakeLists.txt [build] Automatic MOC and UIC for target lib1 [build] lib1.vcxproj -> ...\lib1.dll [build] Automatic MOC and UIC for target lib2 [build] lib2.vcxproj -> ...\lib2.dll [build] Automatic MOC and UIC for target exec [build] 1>Automatic RCC for .qrc [build] Building Custom Rule .../CMakeLists.txt
lib/qt/cmake.txt · Dernière modification : de root