Not Logged In
|
Login
|
Register
Home
|
News
|
Projects
|
Releases
Bugs
|
RFE
|
Repositories
|
Help
projects
/
xestiaab
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Re-enable unit tests
[xestiaab/.git]
/
source
/
tests
/
CMakeLists.txt
diff --git
a/source/tests/CMakeLists.txt
b/source/tests/CMakeLists.txt
index
aa4c95e
..
f67eb47
100644
(file)
--- a/
source/tests/CMakeLists.txt
+++ b/
source/tests/CMakeLists.txt
@@
-1,9
+1,11
@@
+set(TARGET_NAME "xestiaab_test")
+
set(FILE_LIST xestiaab_test.cpp
xestiaab_carddav.cpp
classes/FakeConnectionObject.cpp
classes/FakeConnectionObject.h)
set(FILE_LIST xestiaab_test.cpp
xestiaab_carddav.cpp
classes/FakeConnectionObject.cpp
classes/FakeConnectionObject.h)
-add_executable(
xestiaab_test
+add_executable(
${TARGET_NAME}
${FILE_LIST})
include_directories(..)
${FILE_LIST})
include_directories(..)
@@
-26,6
+28,9
@@
target_link_libraries(xestiaab_test
vcard
widgets)
vcard
widgets)
-add_custom_command(TARGET
xestiaab_test
POST_BUILD
+add_custom_command(TARGET
${TARGET_NAME}
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/tests/files/* ${CMAKE_BINARY_DIR}/tests/.
)
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/tests/files/* ${CMAKE_BINARY_DIR}/tests/.
)
+
+gtest_add_tests(TARGET ${TARGET_NAME}
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests/files)
\ No newline at end of file
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy