separate benchmark target

This commit is contained in:
Daniel Sipka 2015-10-02 17:19:48 +02:00
parent 041c192652
commit e55c2a81f1
3 changed files with 10 additions and 3 deletions

View file

@ -18,8 +18,13 @@ if(WITH_UNIT_TESTS)
enable_testing()
include_directories(
vendor/Catch/single_include
vendor/json.hpp/include
vendor/benchmark/include)
add_subdirectory(vendor/benchmark)
vendor/json.hpp/include)
add_subdirectory(test)
endif()
if(WITH_BENCHMARK)
include_directories(
vendor/benchmark/include)
add_subdirectory(vendor/benchmark)
add_subdirectory(benchmark)
endif()

2
benchmark/CMakeLists.txt Normal file
View file

@ -0,0 +1,2 @@
add_executable(mstch_benchmark benchmark_main.cpp)
target_link_libraries(mstch_benchmark mstch benchmark)