realm-js/tests/CMakeLists.txt
Thomas Goyne fafc4232ad Rewrite the code coverage generation
Make lcov/gcovr an optional dependency that's only needed for Coverage
configurations, remove some pointless noisy messages when not generating
coverage, and generally simplify the whole thing.
2016-05-06 15:23:30 -07:00

21 lines
410 B
CMake

include_directories(../external/catch/single_include .)
set(HEADERS
util/test_file.hpp
)
set(SOURCES
index_set.cpp
main.cpp
parser.cpp
results.cpp
util/test_file.cpp
)
add_executable(tests ${SOURCES} ${HEADERS})
target_link_libraries(tests realm-object-store)
create_coverage_target(generate-coverage tests)
add_custom_target(run-tests USES_TERMINAL DEPENDS tests COMMAND ./tests)