|
@ -41,6 +41,7 @@ add_library(klotski::core ALIAS klotski_core) |
|
|
add_executable(klotski_core_bin main.cc) |
|
|
add_executable(klotski_core_bin main.cc) |
|
|
target_link_libraries(klotski_core_bin PRIVATE klotski_core) |
|
|
target_link_libraries(klotski_core_bin PRIVATE klotski_core) |
|
|
|
|
|
|
|
|
|
|
|
if (KLSK_ENABLE_BENCHMARK) |
|
|
set(KLSK_BENCHMARK_OPTS -fno-rtti -fno-exceptions -fno-access-control) |
|
|
set(KLSK_BENCHMARK_OPTS -fno-rtti -fno-exceptions -fno-access-control) |
|
|
set(KLSK_BENCHMARK_LIBS klotski::core benchmark::benchmark_main bs::thread_pool) |
|
|
set(KLSK_BENCHMARK_LIBS klotski::core benchmark::benchmark_main bs::thread_pool) |
|
|
|
|
|
|
|
@ -67,3 +68,4 @@ target_link_libraries(bm_klsk_utility PRIVATE ${KLSK_BENCHMARK_LIBS}) |
|
|
add_executable(bm_klsk_fast_cal benchmark/fast_cal.cc) |
|
|
add_executable(bm_klsk_fast_cal benchmark/fast_cal.cc) |
|
|
target_compile_options(bm_klsk_fast_cal PRIVATE ${KLSK_BENCHMARK_OPTS}) |
|
|
target_compile_options(bm_klsk_fast_cal PRIVATE ${KLSK_BENCHMARK_OPTS}) |
|
|
target_link_libraries(bm_klsk_fast_cal PRIVATE ${KLSK_BENCHMARK_LIBS}) |
|
|
target_link_libraries(bm_klsk_fast_cal PRIVATE ${KLSK_BENCHMARK_LIBS}) |
|
|
|
|
|
endif() |
|
|