From bafa33be67f961a2ae2879d1038ac1925921e153 Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Fri, 3 Nov 2023 10:56:33 +0800 Subject: [PATCH] tests: cleanups --- test/CMakeLists.txt | 4 +++- test/test_common.hpp | 1 + test/test_helpers.hpp | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 9b2481a..d51b0fe 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -23,7 +23,9 @@ set(Tests foreach(Test ${Tests}) # Test target - add_executable(boost_lockfree_${Test} ${Test}.cpp ) + add_executable(boost_lockfree_${Test} ${Test}.cpp test_common.hpp test_helpers.hpp ) + source_group( TREE "${CMAKE_CURRENT_SOURCE_DIR}" FILES ${Test}.cpp test_common.hpp test_helpers.hpp) + target_include_directories(boost_lockfree_${Test} PRIVATE . ) target_link_libraries(boost_lockfree_${Test} PRIVATE Boost::lockfree diff --git a/test/test_common.hpp b/test/test_common.hpp index 917a291..a6029ba 100644 --- a/test/test_common.hpp +++ b/test/test_common.hpp @@ -9,6 +9,7 @@ #include #include +#include #include namespace impl { diff --git a/test/test_helpers.hpp b/test/test_helpers.hpp index b4fc10d..e7a9fe2 100644 --- a/test/test_helpers.hpp +++ b/test/test_helpers.hpp @@ -8,11 +8,12 @@ #define BOOST_LOCKFREE_TEST_HELPERS #include +#include #include +#include #include #include -#include template < typename int_type > int_type generate_id( void )