Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions data_tamer_cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
if(${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})
option(DATA_TAMER_BUILD_TESTS "Build tests" ON)
option(DATA_TAMER_BUILD_EXAMPLES "Build examples" ON)
option(DATA_TAMER_BUILD_BENCHMARKS "Build benchmarks" ON)
else()
option(DATA_TAMER_BUILD_TESTS "Build tests" OFF)
option(DATA_TAMER_BUILD_EXAMPLES "Build examples" OFF)
option(DATA_TAMER_BUILD_BENCHMARKS "Build benchmarks" OFF)
endif()

option(BUILD_SHARED_LIBS "Build using shared libraries" OFF)
Expand Down Expand Up @@ -191,9 +193,11 @@ if(DATA_TAMER_BUILD_EXAMPLES)
add_subdirectory(examples)
endif()

find_package(benchmark QUIET)
if(benchmark_FOUND)
add_subdirectory(benchmarks)
else()
message("Google Benchmark library not found")
endif()
if(DATA_TAMER_BUILD_BENCHMARKS)
find_package(benchmark QUIET)
if(benchmark_FOUND)
add_subdirectory(benchmarks)
else()
message("Google Benchmark library not found")
endif()
endif()