-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
30 lines (21 loc) · 928 Bytes
/
CMakeLists.txt
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
# Copyright (c) 2024 by Cliff Green
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
cmake_minimum_required ( VERSION 3.14 FATAL_ERROR )
# create project
project ( shared_buffer_test LANGUAGES CXX )
# add executable
add_executable ( shared_buffer_test shared_buffer_test.cpp )
target_compile_features ( shared_buffer_test PRIVATE cxx_std_20 )
# add dependencies
include ( ../cmake/download_cpm.cmake )
CPMAddPackage ( "gh:catchorg/Catch2@3.8.0" )
CPMAddPackage ( "gh:connectivecpp/utility-rack@1.0.4" )
# link dependencies
target_link_libraries ( shared_buffer_test PRIVATE shared_buffer utility_rack Catch2::Catch2WithMain )
enable_testing()
add_test ( NAME run_shared_buffer_test COMMAND shared_buffer_test )
set_tests_properties ( run_shared_buffer_test
PROPERTIES PASS_REGULAR_EXPRESSION "All tests passed"
)