summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-08-14 10:02:18 +0100
committerJose Fonseca <jfonseca@vmware.com>2015-08-14 11:20:28 +0100
commit1ee5efdc5e1eca0fcb23f19ac6e7bb156d6c69ed (patch)
treee173647de89d37a83390136d88c5519b6ff0b248 /gui
parent3ff3f99a4bae85c82263e07781ffea7fcfa27974 (diff)
cmake: Add a convenience macro for gtest based unit tests.
Diffstat (limited to 'gui')
-rw-r--r--gui/CMakeLists.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt
index 6e7f1470..6c5c7b92 100644
--- a/gui/CMakeLists.txt
+++ b/gui/CMakeLists.txt
@@ -9,10 +9,8 @@ add_library (qubjson STATIC
qubjson.cpp
)
-add_executable (qubjson_test qubjson_test.cpp)
-target_link_libraries (qubjson_test qubjson gtest)
-add_dependencies (check qubjson_test)
-add_test (NAME qubjson_test COMMAND $<TARGET_FILE:qubjson_test>)
+add_gtest (qubjson_test qubjson_test.cpp)
+target_link_libraries (qubjson_test qubjson)
set(qapitrace_SRCS
androiddevicedialog.cpp