1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
# Copyright (C) 2015-2023 Jonathan Müller and foonathan/memory contributors
# SPDX-License-Identifier: Zlib
# builds test
add_executable(foonathan_memory_profiling benchmark.hpp profiling.cpp)
target_link_libraries(foonathan_memory_profiling foonathan_memory)
find_package(doctest REQUIRED)
set(tests
test_allocator.hpp
test.cpp
detail/align.cpp
detail/debug_helpers.cpp
detail/free_list.cpp
detail/free_list_array.cpp
detail/ilog2.cpp
detail/memory_stack.cpp
aligned_allocator.cpp
allocator_traits.cpp
default_allocator.cpp
fallback_allocator.cpp
iteration_allocator.cpp
joint_allocator.cpp
memory_arena.cpp
memory_pool.cpp
memory_pool_collection.cpp
memory_resource_adapter.cpp
memory_stack.cpp
segregator.cpp
smart_ptr.cpp)
add_executable(foonathan_memory_test ${tests})
target_link_libraries(foonathan_memory_test PRIVATE foonathan_memory doctest::doctest)
add_test(NAME test COMMAND foonathan_memory_test)
|