We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10841a8 commit b939c6bCopy full SHA for b939c6b
2 files changed
src/CMakeLists.txt
@@ -30,4 +30,23 @@ if ( ATOMIC_QUEUE_BUILD_TESTS )
30
NAME atomic_queue_tests
31
COMMAND atomic_queue_tests
32
)
33
+
34
+ if (APPLE)
35
+ add_executable(
36
+ atomic_queue_tests_objcpp
37
+ ${CMAKE_CURRENT_SOURCE_DIR}/tests.mm
38
+ )
39
40
+ target_link_libraries(
41
42
+ atomic_queue
43
+ Boost::unit_test_framework
44
45
46
+ add_test(
47
+ NAME atomic_queue_tests_objcpp
48
+ COMMAND atomic_queue_tests_objcpp
49
50
+ endif()
51
52
endif()
src/tests.mm
@@ -0,0 +1,2 @@
1
+// For objective-c++ compatibility tests
2
+#include "tests.cc"
0 commit comments