On Friday 24 April 2015 16:41:32 Milian Wolff wrote: > > Or you want to conditionally define the Q_AUTOTEST_EXPORT depending on > > whether BUILD_TESTING (cmake variable) is on? > > This would add some differences into the libraries developers&CI and > > users use (which isn't ideal) but should be fine otherwise. > > What is Qt doing in its magic build system - does anyone know?
In the .pro file requres(contains(QT_CONFIG, private_tests)) And/or in the .cpp file: #ifdef QT_BUILD_INTERNAL The "private_tests" config key is the one that sets QT_BUILD_INTERNAL macro. -- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel Open Source Technology Center PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<