mirror of
https://github.com/luxfi/intx.git
synced 2026-10-30 16:22:26 +00:00
19 lines
623 B
CMake
19 lines
623 B
CMake
# intx: extended precision integer library.
|
|
# Copyright 2019 Pawel Bylica.
|
|
# Licensed under the Apache License, Version 2.0.
|
|
|
|
hunter_add_package(benchmark)
|
|
find_package(benchmark CONFIG REQUIRED)
|
|
|
|
find_package(GMP REQUIRED)
|
|
|
|
add_executable(intx-bench
|
|
../experimental/addmod.hpp
|
|
bench_div.cpp
|
|
bench_int128.cpp
|
|
benchmarks.cpp
|
|
)
|
|
target_link_libraries(intx-bench PRIVATE intx intx::experimental intx::testutils benchmark::benchmark GMP::gmp)
|
|
target_compile_options(intx-bench PRIVATE $<$<CXX_COMPILER_ID:GNU,Clang>:-falign-functions=32>)
|
|
set_target_properties(intx-bench PROPERTIES RUNTIME_OUTPUT_DIRECTORY ..)
|