file(GLOB_RECURSE BENCHMARK_SOURCE *.cpp)
find_package(benchmark REQUIRED)

include_directories(BEFORE INTERFACE ../include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)

add_executable(Benchmark{{project.meta_data.name}} ${BENCHMARK_SOURCE})

{% if project.meta_data.header_only -%}
target_link_libraries(Benchmark{{ project.meta_data.name }} PRIVATE benchmark::benchmark_main)
{% else %}
target_link_libraries(Benchmark{{ project.meta_data.name }} PRIVATE ${CMAKE_PROJECT_NAME} benchmark::benchmark_main)
{% endif %}
