On 27.01.11 22:56:05, Riccardo Bellini wrote: > Hello! > I wonder if there is a way to set up and run in CMake one or more test like > those created with Qt Unit Test library. > I need to know in particular what commands do I have to use, just a simple > example of how to create a test executable from a test class.
add_executable( yourtestexec yourtestclass ) add_test( yourtest yourtestexec ) The 'magic' is done by the QTestLib macros, in particular QTEST_MAIN() which generates the main function and drives the test-execution. Then use enable_testing() to get the make test macro or use ctest to run the test. Andreas -- You will contract a rare disease. >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<