diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2015-08-14 10:02:18 +0100 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-08-14 11:20:28 +0100 |
commit | 1ee5efdc5e1eca0fcb23f19ac6e7bb156d6c69ed (patch) | |
tree | e173647de89d37a83390136d88c5519b6ff0b248 /gui | |
parent | 3ff3f99a4bae85c82263e07781ffea7fcfa27974 (diff) |
cmake: Add a convenience macro for gtest based unit tests.
Diffstat (limited to 'gui')
-rw-r--r-- | gui/CMakeLists.txt | 6 |
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 |