mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-17 17:17:22 +00:00
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.
21 lines
410 B
CMake
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)
|