From f42795551235568ecf4c82514c2175164d24c64a Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Wed, 30 Mar 2016 17:58:15 +0200 Subject: Simplify the build of auto tests Remove all configure_files: - Move all tests to cpp files - Use the QTEST_MAIN macro instead of a generated main.cpp - Include test*.moc in the cpp to let CMAKE_AUTOMOC call moc - Pass info through add_definitions instead of generating oc_bin.h with them This makes sure that build errors points to the original test source file instead of the generated one in the build directory to be able to jump and fix errors directly from the IDE's error pane. --- test/CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) (limited to 'test/CMakeLists.txt') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index c001c5e35..b218aa98f 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -26,8 +26,6 @@ if( UNIX AND NOT APPLE ) owncloud_add_test(InotifyWatcher "${FolderWatcher_SRC}") endif(UNIX AND NOT APPLE) -configure_file(oc_bin.h.in oc_bin.h) - owncloud_add_test(CSyncSqlite "") owncloud_add_test(NetrcParser ../src/cmd/netrcparser.cpp) owncloud_add_test(OwnSql "") -- cgit v1.2.3