# Copyright 2024 Peter Dimov # Distributed under the Boost Software License, Version 1.0. # See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt include(BoostTest OPTIONAL RESULT_VARIABLE HAVE_BOOST_TEST) if(NOT HAVE_BOOST_TEST) return() endif() set(THREADS_PREFER_PTHREAD_FLAG ON) find_package(Threads REQUIRED) set(BOOST_TEST_LINK_LIBRARIES Boost::uuid Boost::core) boost_test(TYPE run SOURCES test_uuid.cpp LINK_LIBRARIES Boost::container_hash COMPILE_DEFINITIONS BOOST_UUID_REPORT_IMPLEMENTATION=1) boost_test(TYPE run SOURCES test_uuid.cpp LINK_LIBRARIES Boost::container_hash COMPILE_DEFINITIONS BOOST_UUID_NO_SIMD=1 BOOST_UUID_REPORT_IMPLEMENTATION=1 NAME test_uuid_no_simd) boost_test(TYPE run SOURCES test_uuid_2.cpp) boost_test(TYPE run SOURCES test_uuid_3.cpp) boost_test(TYPE run SOURCES test_alignment.cpp) boost_test(TYPE run SOURCES test_alignment_2.cpp) boost_test(TYPE run SOURCES test_attribute_packed.cpp) boost_test(TYPE run SOURCES test_pragma_pack.cpp) boost_test(TYPE run SOURCES test_data.cpp) boost_test(TYPE run SOURCES test_comparison.cpp COMPILE_DEFINITIONS BOOST_UUID_REPORT_IMPLEMENTATION=1) boost_test(TYPE run SOURCES test_comparison.cpp COMPILE_DEFINITIONS BOOST_UUID_NO_SIMD=1 BOOST_UUID_REPORT_IMPLEMENTATION=1 NAME test_comparison_no_simd) boost_test(TYPE run SOURCES test_include1.cpp test_include2.cpp) boost_test(TYPE run SOURCES test_io.cpp LINK_LIBRARIES Boost::lexical_cast Boost::predef) boost_test(TYPE run SOURCES test_io_2.cpp) boost_test(TYPE run SOURCES test_to_chars.cpp) boost_test(TYPE run SOURCES test_to_chars_2.cpp) boost_test(TYPE run SOURCES test_uuid_clock.cpp) boost_test(TYPE run SOURCES test_nil_generator.cpp) boost_test(TYPE run SOURCES test_string_generator.cpp) boost_test(TYPE run SOURCES test_random_generator.cpp LINK_LIBRARIES Boost::random Boost::predef) boost_test(TYPE run SOURCES test_random_generator_2.cpp) boost_test(TYPE run SOURCES test_name_generator.cpp LINK_LIBRARIES Boost::predef) boost_test(TYPE run SOURCES test_namespaces.cpp) boost_test(TYPE run SOURCES test_name_generator_md5.cpp) boost_test(TYPE run SOURCES test_name_generator_sha1.cpp) boost_test(TYPE run SOURCES test_time_generator.cpp) boost_test(TYPE run SOURCES test_time_generator_v1.cpp) boost_test(TYPE run SOURCES test_time_generator_v1_2.cpp) boost_test(TYPE run SOURCES test_time_generator_v1_3.cpp LINK_LIBRARIES Threads::Threads) boost_test(TYPE run SOURCES test_time_generator_v6.cpp) boost_test(TYPE run SOURCES test_time_generator_v6_2.cpp) boost_test(TYPE run SOURCES test_time_generator_v6_3.cpp LINK_LIBRARIES Threads::Threads) boost_test(TYPE run SOURCES test_time_generator_v7.cpp) boost_test(TYPE run SOURCES test_time_generator_v7_2.cpp) boost_test(TYPE run SOURCES test_time_generator_v7_3.cpp) boost_test(TYPE run SOURCES test_tagging.cpp) boost_test(TYPE run SOURCES test_uuid_class.cpp) boost_test(TYPE run SOURCES test_uuid_in_map.cpp) boost_test(TYPE run SOURCES test_hash.cpp LINK_LIBRARIES Boost::container_hash) boost_test(TYPE run SOURCES test_hash_value.cpp) boost_test(TYPE run SOURCES test_boost_unordered.cpp LINK_LIBRARIES Boost::unordered) boost_test(TYPE run SOURCES test_std_unordered.cpp) boost_test(TYPE run SOURCES test_detail_md5.cpp) boost_test(TYPE run SOURCES test_detail_sha1.cpp) boost_test(TYPE run SOURCES test_detail_endian.cpp) boost_test(TYPE run SOURCES test_detail_chacha20.cpp) boost_test(TYPE run SOURCES test_entropy_error.cpp) boost_test(TYPE run SOURCES test_detail_random_provider.cpp LINK_LIBRARIES Boost::array) boost_test(TYPE run SOURCES test_serialization.cpp LINK_LIBRARIES Boost::serialization) boost_test(TYPE compile SOURCES test_uuid_cx.cpp) boost_test(TYPE run SOURCES quick.cpp)