CMakeLists.txt 825 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
# Configuration and common algorithm pieces for benchmarks
configure_file(src/sample_images.cpp.in sample_images.cpp)

add_library(benchmark_base STATIC
        ${CMAKE_CURRENT_BINARY_DIR}/sample_images.cpp
        src/fft.cpp include/benchmark_base/fft.h
        include/benchmark_base/heat.h
        include/benchmark_base/matrix.h
        include/benchmark_base/unbalanced.h src/unbalanced.cpp
FritzFlorian committed
10
        include/benchmark_base/range.h
11
        include/benchmark_base/fib.h
12
        include/benchmark_base/matrix_div_conquer.h src/matrix_div_conquer.cpp)
13 14 15 16 17 18 19 20 21 22

target_include_directories(benchmark_base
        PUBLIC
        $<INSTALL_INTERFACE:include>
        $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
        PRIVATE
        ${CMAKE_CURRENT_SOURCE_DIR}/src
        )

target_link_libraries(benchmark_base picosha2)