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
|
CMAKE_MINIMUM_REQUIRED( VERSION 3.25 )
PROJECT(atomic_queue VERSION 1.5.0)
OPTION( ATOMIC_QUEUE_BUILD_TESTS
"If the tests should be built."
OFF
)
OPTION( ATOMIC_QUEUE_BUILD_EXAMPLES
"If examples should be built."
OFF
)
if ( PROJECT_IS_TOP_LEVEL )
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED)
endif()
add_subdirectory( include )
if ( ATOMIC_QUEUE_BUILD_TESTS )
enable_testing()
endif()
if ( ATOMIC_QUEUE_BUILD_TESTS OR ATOMIC_QUEUE_BUILD_EXAMPLES)
add_subdirectory( src )
endif()
add_library(max0x7ba::atomic_queue ALIAS atomic_queue)
|