|
|
@ -41,29 +41,31 @@ add_library(klotski::core ALIAS klotski_core) |
|
|
|
add_executable(klotski_core_bin main.cc) |
|
|
|
target_link_libraries(klotski_core_bin PRIVATE klotski_core) |
|
|
|
|
|
|
|
set(KLSK_BENCHMARK_OPTS -fno-rtti -fno-exceptions -fno-access-control) |
|
|
|
set(KLSK_BENCHMARK_LIBS klotski::core benchmark::benchmark_main bs::thread_pool) |
|
|
|
|
|
|
|
add_executable(bm_klsk_codec benchmark/codec.cc) |
|
|
|
target_compile_options(bm_klsk_codec PRIVATE ${KLSK_BENCHMARK_OPTS}) |
|
|
|
target_link_libraries(bm_klsk_codec PRIVATE ${KLSK_BENCHMARK_LIBS}) |
|
|
|
|
|
|
|
add_executable(bm_klsk_group benchmark/group.cc) |
|
|
|
target_compile_options(bm_klsk_group PRIVATE ${KLSK_BENCHMARK_OPTS}) |
|
|
|
target_link_libraries(bm_klsk_group PRIVATE ${KLSK_BENCHMARK_LIBS}) |
|
|
|
|
|
|
|
add_executable(bm_klsk_all_cases benchmark/all_cases.cc) |
|
|
|
target_compile_options(bm_klsk_all_cases PRIVATE ${KLSK_BENCHMARK_OPTS}) |
|
|
|
target_link_libraries(bm_klsk_all_cases PRIVATE ${KLSK_BENCHMARK_LIBS}) |
|
|
|
|
|
|
|
add_executable(bm_klsk_ranges benchmark/ranges.cc) |
|
|
|
target_compile_options(bm_klsk_ranges PRIVATE ${KLSK_BENCHMARK_OPTS}) |
|
|
|
target_link_libraries(bm_klsk_ranges PRIVATE ${KLSK_BENCHMARK_LIBS}) |
|
|
|
|
|
|
|
add_executable(bm_klsk_utility benchmark/utility.cc) |
|
|
|
target_compile_options(bm_klsk_utility PRIVATE ${KLSK_BENCHMARK_OPTS}) |
|
|
|
target_link_libraries(bm_klsk_utility PRIVATE ${KLSK_BENCHMARK_LIBS}) |
|
|
|
|
|
|
|
add_executable(bm_klsk_fast_cal benchmark/fast_cal.cc) |
|
|
|
target_compile_options(bm_klsk_fast_cal PRIVATE ${KLSK_BENCHMARK_OPTS}) |
|
|
|
target_link_libraries(bm_klsk_fast_cal PRIVATE ${KLSK_BENCHMARK_LIBS}) |
|
|
|
if (KLSK_ENABLE_BENCHMARK) |
|
|
|
set(KLSK_BENCHMARK_OPTS -fno-rtti -fno-exceptions -fno-access-control) |
|
|
|
set(KLSK_BENCHMARK_LIBS klotski::core benchmark::benchmark_main bs::thread_pool) |
|
|
|
|
|
|
|
add_executable(bm_klsk_codec benchmark/codec.cc) |
|
|
|
target_compile_options(bm_klsk_codec PRIVATE ${KLSK_BENCHMARK_OPTS}) |
|
|
|
target_link_libraries(bm_klsk_codec PRIVATE ${KLSK_BENCHMARK_LIBS}) |
|
|
|
|
|
|
|
add_executable(bm_klsk_group benchmark/group.cc) |
|
|
|
target_compile_options(bm_klsk_group PRIVATE ${KLSK_BENCHMARK_OPTS}) |
|
|
|
target_link_libraries(bm_klsk_group PRIVATE ${KLSK_BENCHMARK_LIBS}) |
|
|
|
|
|
|
|
add_executable(bm_klsk_all_cases benchmark/all_cases.cc) |
|
|
|
target_compile_options(bm_klsk_all_cases PRIVATE ${KLSK_BENCHMARK_OPTS}) |
|
|
|
target_link_libraries(bm_klsk_all_cases PRIVATE ${KLSK_BENCHMARK_LIBS}) |
|
|
|
|
|
|
|
add_executable(bm_klsk_ranges benchmark/ranges.cc) |
|
|
|
target_compile_options(bm_klsk_ranges PRIVATE ${KLSK_BENCHMARK_OPTS}) |
|
|
|
target_link_libraries(bm_klsk_ranges PRIVATE ${KLSK_BENCHMARK_LIBS}) |
|
|
|
|
|
|
|
add_executable(bm_klsk_utility benchmark/utility.cc) |
|
|
|
target_compile_options(bm_klsk_utility PRIVATE ${KLSK_BENCHMARK_OPTS}) |
|
|
|
target_link_libraries(bm_klsk_utility PRIVATE ${KLSK_BENCHMARK_LIBS}) |
|
|
|
|
|
|
|
add_executable(bm_klsk_fast_cal benchmark/fast_cal.cc) |
|
|
|
target_compile_options(bm_klsk_fast_cal PRIVATE ${KLSK_BENCHMARK_OPTS}) |
|
|
|
target_link_libraries(bm_klsk_fast_cal PRIVATE ${KLSK_BENCHMARK_LIBS}) |
|
|
|
endif() |
|
|
|