include dirs for benchmark
This commit is contained in:
parent
a0005f915c
commit
28fa2eec0e
@ -1,6 +1,8 @@
|
|||||||
cmake_minimum_required(VERSION 3.0.2)
|
cmake_minimum_required(VERSION 3.0.2)
|
||||||
project(mstch)
|
project(mstch)
|
||||||
option (WITH_UNIT_TESTS "enable building unit test executable" OFF)
|
|
||||||
|
option(WITH_UNIT_TESTS "enable building unit test executable" OFF)
|
||||||
|
option(WITH_BENCHMARK "enable building benchmark executable" OFF)
|
||||||
|
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON)
|
||||||
@ -16,15 +18,10 @@ add_subdirectory(src)
|
|||||||
|
|
||||||
if(WITH_UNIT_TESTS)
|
if(WITH_UNIT_TESTS)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
include_directories(
|
|
||||||
vendor/Catch/single_include
|
|
||||||
vendor/json.hpp/include)
|
|
||||||
add_subdirectory(test)
|
add_subdirectory(test)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WITH_BENCHMARK)
|
if(WITH_BENCHMARK)
|
||||||
include_directories(
|
|
||||||
vendor/benchmark/include)
|
|
||||||
add_subdirectory(vendor/benchmark)
|
add_subdirectory(vendor/benchmark)
|
||||||
add_subdirectory(benchmark)
|
add_subdirectory(benchmark)
|
||||||
endif()
|
endif()
|
||||||
|
@ -1,2 +1,6 @@
|
|||||||
|
include_directories(
|
||||||
|
${CMAKE_SOURCE_DIR}/include
|
||||||
|
${CMAKE_SOURCE_DIR}/vendor/benchmark/include)
|
||||||
|
|
||||||
add_executable(mstch_benchmark benchmark_main.cpp)
|
add_executable(mstch_benchmark benchmark_main.cpp)
|
||||||
target_link_libraries(mstch_benchmark mstch benchmark)
|
target_link_libraries(mstch_benchmark mstch benchmark)
|
||||||
|
@ -2,6 +2,8 @@ find_package(Boost 1.54 COMPONENTS program_options REQUIRED)
|
|||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_SOURCE_DIR}/include
|
${CMAKE_SOURCE_DIR}/include
|
||||||
|
${CMAKE_SOURCE_DIR}/vendor/Catch/single_include
|
||||||
|
${CMAKE_SOURCE_DIR}/vendor/json.hpp/include
|
||||||
${Boost_INCLUDE_DIR})
|
${Boost_INCLUDE_DIR})
|
||||||
|
|
||||||
add_executable(headerize headerize.cpp)
|
add_executable(headerize headerize.cpp)
|
||||||
|
Loading…
Reference in New Issue
Block a user