Using CMake to Build Qt Projects
-
Thanks to Johan Thelin for the "article":http://developer.qt.nokia.com/quarterly/view/using_cmake_to_build_qt_projects in Qt Quarterly.
One question: is there a variable to add the declarative module to the used modules list like for example network:
SET ( QT_USE_QTOPENGL TRUE )
-
I like idea using QtScript instead .pro files. Good "article":http://labs.trolltech.com/blogs/2009/10/14/to-make-or-not-to-make-qmake-and-beyond-redux/.
-
[quote author="SABROG" date="1280994372"]I like idea using QtScript instead .pro files. Good "article":http://labs.trolltech.com/blogs/2009/10/14/to-make-or-not-to-make-qmake-and-beyond-redux/.[/quote]
Why this way is better than CMake?
-
Smar: "if you need to do anything besides declarations, it gets pretty messy" does unfortunately describe pretty much any build system I ever had to deal with:-(
-
[quote author="Smar" date="1281084862"]CMake's syntax is a bit unintuitive and if you need to do anything besides declarations, it gets pretty messy unless you want to put quite a bit time to write modules...
Or that's how I think about it.
[/quote]Ok, Smar, this is an option form in CMake for build/update translations.
@option (UPDATE_TRANSLATIONS "Update source translation *.ts files (WARNING: make clean will delete the source .ts files! Danger!)")
if (UPDATE_TRANSLATIONS)
QT4_CREATE_TRANSLATION(QM_FILES ${TRANSLATIONS})
else (UPDATE_TRANSLATIONS)
QT4_ADD_TRANSLATION(QM_FILES ${TRANSLATIONS})
endif (UPDATE_TRANSLATIONS) @What replacement for it will be in QtScript as buldsystem or other stuff?