CMake: Add benchmarks

Put each benchmark application in a sub-directory instead of specifying all in one
file, because cotire cannot create PCH targets for the same file twice (bench.cpp).
This commit is contained in:
Maarten Bent
2021-02-07 20:15:37 +01:00
parent 7b79423470
commit 9585e08365
7 changed files with 102 additions and 2 deletions

View File

@@ -32,6 +32,10 @@ if(wxBUILD_DEMOS)
add_subdirectory(build/cmake/demos demos)
endif()
if(wxBUILD_BENCHMARKS)
add_subdirectory(build/cmake/benchmarks benchmarks)
endif()
if(NOT wxBUILD_CUSTOM_SETUP_HEADER_PATH)
# Write setup.h after all variables are available
include(build/cmake/setup.cmake)