华容道高性能计算引擎
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.0 KiB

set(KLOTSKI_THIRD_PARTY ${KLOTSKI_ROOT_DIR}/third_party)
# abseil library
set(ABSL_PROPAGATE_CXX_STD ON)
add_subdirectory(${KLOTSKI_THIRD_PARTY}/abseil-cpp EXCLUDE_FROM_ALL)
if (KLOTSKI_ENABLE_BENCHMARK)
# google benchmark framework
set(BENCHMARK_ENABLE_TESTING OFF)
set(BENCHMARK_ENABLE_EXCEPTIONS OFF)
add_subdirectory(${KLOTSKI_THIRD_PARTY}/benchmark EXCLUDE_FROM_ALL)
endif()
if (KLOTSKI_ENABLE_TESTING)
# BS thread pool
add_library(thread_pool INTERFACE)
target_include_directories(thread_pool INTERFACE
${KLOTSKI_THIRD_PARTY}/thread-pool/include)
add_library(bs::thread_pool ALIAS thread_pool)
# md5sum implementation
set(MD5_ENABLE_LTO OFF)
add_subdirectory(${KLOTSKI_THIRD_PARTY}/md5sum EXCLUDE_FROM_ALL)
# google test framework
add_subdirectory(${KLOTSKI_THIRD_PARTY}/googletest EXCLUDE_FROM_ALL)
# xxHash implementation
add_library(xxhash INTERFACE)
target_include_directories(xxhash INTERFACE ${KLOTSKI_THIRD_PARTY}/xxHash)
add_library(xxHash::xxh3 ALIAS xxhash)
endif()