diff options
author | paradust7 <102263465+paradust7@users.noreply.github.com> | 2022-05-06 13:17:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 21:17:16 +0100 |
commit | 87472150bcb83e9cbad2f567ac536de0456ceb70 (patch) | |
tree | 027a80a417245989764c45d6923e9c81c7785805 /src/CMakeLists.txt | |
parent | 45d318a77300b014b13366ee9fa4cfc69e08f360 (diff) | |
download | minetest-87472150bcb83e9cbad2f567ac536de0456ceb70.tar.gz minetest-87472150bcb83e9cbad2f567ac536de0456ceb70.tar.bz2 minetest-87472150bcb83e9cbad2f567ac536de0456ceb70.zip |
Add benchmarks for json string serialize/deserialize (#12258)
Co-authored-by: sfan5 <sfan5@live.de>
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 03e48ddbd..7bba68a64 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -330,6 +330,7 @@ add_subdirectory(mapgen) add_subdirectory(network) add_subdirectory(script) add_subdirectory(unittest) +add_subdirectory(benchmark) add_subdirectory(util) add_subdirectory(irrlicht_changes) add_subdirectory(server) @@ -412,6 +413,9 @@ if(BUILD_UNITTESTS) set(common_SRCS ${common_SRCS} ${UNITTEST_SRCS}) endif() +if(BUILD_BENCHMARKS) + set(common_SRCS ${common_SRCS} ${BENCHMARK_SRCS}) +endif() # This gives us the icon and file version information if(WIN32) @@ -452,6 +456,10 @@ if(BUILD_UNITTESTS) set(client_SRCS ${client_SRCS} ${UNITTEST_CLIENT_SRCS}) endif() +if(BUILD_BENCHMARKS) + set(client_SRCS ${client_SRCS} ${BENCHMARK_CLIENT_SRCS}) +endif() + list(SORT client_SRCS) # Server sources @@ -567,6 +575,9 @@ if(BUILD_CLIENT) if (USE_SPATIAL) target_link_libraries(${PROJECT_NAME} ${SPATIAL_LIBRARY}) endif() + if(BUILD_BENCHMARKS) + target_link_libraries(${PROJECT_NAME} catch2) + endif() endif(BUILD_CLIENT) @@ -626,6 +637,9 @@ if(BUILD_SERVER) ${CURL_LIBRARY} ) endif() + if(BUILD_BENCHMARKS) + target_link_libraries(${PROJECT_NAME}server catch2) + endif() endif(BUILD_SERVER) # Blacklisted locales that don't work. |