diff options
Diffstat (limited to 'client/test/CMakeLists.txt')
-rw-r--r-- | client/test/CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/client/test/CMakeLists.txt b/client/test/CMakeLists.txt new file mode 100644 index 0000000..6453fc5 --- /dev/null +++ b/client/test/CMakeLists.txt | |||
@@ -0,0 +1,15 @@ | |||
1 | set(CMAKE_AUTOMOC ON) | ||
2 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) | ||
3 | |||
4 | macro(auto_tests) | ||
5 | foreach(_testname ${ARGN}) | ||
6 | add_executable(${_testname} ${_testname}.cpp ${store_SRCS}) | ||
7 | qt5_use_modules(${_testname} Core Test) | ||
8 | target_link_libraries(${_testname} lmdb) | ||
9 | add_test(NAME ${_testname} COMMAND ${_testname}) | ||
10 | endforeach(_testname) | ||
11 | endmacro(auto_tests) | ||
12 | |||
13 | auto_tests ( | ||
14 | clientapitest | ||
15 | ) | ||