Skip to content

Commit

Permalink
CMake: Add benchmark test
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Sep 14, 2019
1 parent c4653cb commit 248f333
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1556,9 +1556,23 @@ endif()
target_include_directories(benchmark PUBLIC lib/benchmark/include)
target_link_libraries(mixxx-test PUBLIC benchmark)

# Test Suite
include(GoogleTest)
enable_testing()
gtest_add_tests(TARGET mixxx-test)
gtest_add_tests(
TARGET mixxx-test
TEST_LIST testsuite
)
set_tests_properties(${testsuite} PROPERTIES TIMEOUT 10)

# Benchmarking
gtest_add_tests(
TARGET mixxx-test
TEST_PREFIX benchmark.
EXTRA_ARGS --benchmark
TEST_LIST benchmark
)
set_tests_properties(${benchmark} PROPERTIES TIMEOUT 10)

#
# Resources
Expand Down

0 comments on commit 248f333

Please sign in to comment.