From 52a60ccdc172ddccb2dfb55a23f7a30623b71835 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sun, 13 Jan 2019 22:29:03 +0100 Subject: [PATCH] Let CMake generate code for test application --- CMakeLists.txt | 10 ++-------- tests/cppunit.cpp | 1 - 2 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 tests/cppunit.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 6abcfcd..3c135a2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,7 @@ set(META_JS_SRC_DIR renamingutility) set(META_VERSION_MAJOR 3) set(META_VERSION_MINOR 1) set(META_VERSION_PATCH 3) +set(META_ADD_DEFAULT_CPP_UNIT_TEST_APPLICATION ON) # add project files set(HEADER_FILES @@ -131,16 +132,9 @@ set(WIDGETS_UI_FILES gui/dbquerywidget.ui ) -#set(QUICK_HEADER_FILES -#) -#set(QUICK_SRC_FILES -# resources/icons.qrc -#) - set(TEST_HEADER_FILES ) set(TEST_SRC_FILES - tests/cppunit.cpp tests/cli.cpp ) @@ -205,7 +199,7 @@ set(REQUIRED_ICONS ) # find c++utilities -find_package(c++utilities 4.12.0 REQUIRED) +find_package(c++utilities 4.17.0 REQUIRED) use_cpp_utilities() include(BasicConfig) diff --git a/tests/cppunit.cpp b/tests/cppunit.cpp deleted file mode 100644 index 67aaee6..0000000 --- a/tests/cppunit.cpp +++ /dev/null @@ -1 +0,0 @@ -#include