2016-01-26 18:33:53 +00:00
|
|
|
include_directories(../external/catch/single_include .)
|
|
|
|
|
|
|
|
set(HEADERS
|
|
|
|
util/test_file.hpp
|
|
|
|
)
|
2016-01-22 00:15:25 +00:00
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
index_set.cpp
|
|
|
|
main.cpp
|
2016-01-26 18:33:53 +00:00
|
|
|
parser.cpp
|
2016-02-26 17:49:07 +00:00
|
|
|
results.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-02-19 01:21:08 +00:00
|
|
|
setup_target_for_coverage(generate-coverage tests coverage)
|
|
|
|
|
2016-01-06 23:52:12 +00:00
|
|
|
add_custom_target(run-tests USES_TERMINAL DEPENDS tests COMMAND ./tests)
|