We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10841a8 commit 572e342Copy full SHA for 572e342
2 files changed
src/CMakeLists.txt
@@ -30,4 +30,24 @@ 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
+ set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/tests.mm PROPERTIES COMPILE_FLAGS "-x objective-c++")
40
41
+ target_link_libraries(
42
43
+ atomic_queue
44
+ Boost::unit_test_framework
45
46
47
+ add_test(
48
+ NAME atomic_queue_tests_objcpp
49
+ COMMAND atomic_queue_tests_objcpp
50
51
+ endif()
52
53
endif()
src/tests.mm
@@ -0,0 +1,3 @@
1
+// For objective-c++ compatibility tests
2
+#include "atomic_queue/atomic_queue.h"
3
+#include "tests.cc"
0 commit comments