2016-01-26 18:33:53 +00:00
|
|
|
include_directories(../external/catch/single_include .)
|
|
|
|
|
|
|
|
set(HEADERS
|
2016-01-21 18:11:19 +00:00
|
|
|
util/index_helpers.hpp
|
2016-01-26 18:33:53 +00:00
|
|
|
util/test_file.hpp
|
|
|
|
)
|
2016-01-22 00:15:25 +00:00
|
|
|
|
|
|
|
set(SOURCES
|
2016-01-21 18:11:19 +00:00
|
|
|
collection_change_indices.cpp
|
2016-01-22 00:15:25 +00:00
|
|
|
index_set.cpp
|
2016-01-21 18:11:19 +00:00
|
|
|
list.cpp
|
2016-01-22 00:15:25 +00:00
|
|
|
main.cpp
|
2016-01-26 18:33:53 +00:00
|
|
|
parser.cpp
|
2016-02-26 17:49:07 +00:00
|
|
|
results.cpp
|
2016-02-25 16:45:57 +00:00
|
|
|
transaction_log_parsing.cpp
|
2016-01-26 18:33:53 +00:00
|
|
|
util/test_file.cpp
|
|
|
|
)
|
2016-01-22 00:15:25 +00:00
|
|
|
|
2016-01-26 18:33:53 +00:00
|
|
|
add_executable(tests ${SOURCES} ${HEADERS})
|
2016-01-06 23:52:12 +00:00
|
|
|
target_link_libraries(tests realm-object-store)
|
|
|
|
|
2016-05-06 21:00:44 +00:00
|
|
|
create_coverage_target(generate-coverage tests)
|
2016-02-19 01:21:08 +00:00
|
|
|
|
2016-01-06 23:52:12 +00:00
|
|
|
add_custom_target(run-tests USES_TERMINAL DEPENDS tests COMMAND ./tests)
|