Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faster properties #60

Merged
merged 14 commits into from
Jan 2, 2022
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@ option(BUILD_EXAMPLES "Build the examples tree." ON)
if(BUILD_EXAMPLES)
add_subdirectory(examples)
endif()

option(BUILD_BENCHES "Build the bench tree." OFF)
if(BUILD_BENCHES)
add_subdirectory(bench)
endif()
19 changes: 19 additions & 0 deletions bench/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
cmake_minimum_required(VERSION 3.14)

project(refl-cpp-bench CXX)

if(refl-cpp_EXAMPLES_USE_INSTALLED)
find_package(refl-cpp REQUIRED)
endif()

set(
benches
large-pod
large-pod-search
)

foreach(bench IN LISTS benches)
add_executable("${bench}" "bench-${bench}.cpp")
target_link_libraries("${bench}" PRIVATE refl-cpp::refl-cpp)
target_compile_features("${bench}" PRIVATE cxx_std_17)
endforeach()
Loading