File tree Expand file tree Collapse file tree 10 files changed +7
-15
lines changed
Expand file tree Collapse file tree 10 files changed +7
-15
lines changed Original file line number Diff line number Diff line change 2020 cmake -DCMAKE_CXX_COMPILER=g++-10
2121 -DCMAKE_BUILD_TYPE=Debug
2222 -DBENCODE_BUILD_TESTS=ON
23- -DBENCODE_BUILD_TESTS_COVERAGE =ON
23+ -DBENCODE_ENABLE_COVERAGE =ON
2424 -DBENCODE_BUILD_DOCS=OFF
2525 -DBENCODE_BUILD_BENCHMARKS=OFF ..
2626 - name : build
Original file line number Diff line number Diff line change @@ -127,15 +127,15 @@ if (BENCODE_ENABLE_INSTALL)
127127
128128
129129 if (NOT expected-lite_FOUND)
130- message (STATUS "Adding fmt to install set" )
131- install (TARGETS expected
130+ message (STATUS "Adding expected-lite to install set" )
131+ install (TARGETS expected-lite
132132 EXPORT ${bencode_targets_export_name}
133133 INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} )
134134 endif ()
135135
136136 if (NOT gsl-lite_FOUND)
137137 message (STATUS "Adding gsl-lite to install set" )
138- install (TARGETS gsl::gsl-lite gsl::gsl -lite-v1
138+ install (TARGETS gsl-lite-v1
139139 EXPORT ${bencode_targets_export_name}
140140 INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} )
141141 endif ()
Original file line number Diff line number Diff line change @@ -25,5 +25,5 @@ foreach(target "benchmark-fbdtemme-bencode"
2525
2626endforeach (target )
2727
28- target_link_libraries (benchmark-arvidn-libtorrent PRIVATE LibtorrentRasterbar:: torrent-rasterbar)
28+ target_link_libraries (benchmark-arvidn-libtorrent PRIVATE torrent-rasterbar)
2929
Original file line number Diff line number Diff line change 77
88#include < benchmark/benchmark.h>
99#include < span>
10- #include " libtorrent/bdecode.hpp"
10+ #include < libtorrent/bdecode.hpp>
1111
1212#include " resources.hpp"
1313
Original file line number Diff line number Diff line change 88 Catch2
99 GIT_REPOSITORY https://github.com/catchorg/Catch2.git
1010 GIT_TAG v2.x
11- EXCLUDE_FROM_ALL TRUE
1211 )
1312 FetchContent_MakeAvailable(Catch2)
14- set ( CMAKE_MODULE_PATH "${Catch2_SOURCE_DIR} /contrib" ${CMAKE_MODULE_PATH} )
13+ list ( APPEND CMAKE_MODULE_PATH "${Catch2_SOURCE_DIR} /contrib" )
1514endif ()
Original file line number Diff line number Diff line change 99 expected-lite
1010 GIT_REPOSITORY https://github.com/martinmoene/expected-lite.git
1111 GIT_TAG master
12- EXCLUDE_FROM_ALL TRUE
1312 )
1413 FetchContent_MakeAvailable(expected-lite)
1514endif ()
Original file line number Diff line number Diff line change 99 fmt
1010 GIT_REPOSITORY https://github.com/fmtlib/fmt.git
1111 GIT_TAG master
12- EXCLUDE_FROM_ALL TRUE
1312 )
1413 set (FMT_INSTALL ON )
1514 set (BUILD_SHARED_LIBS ON )
Original file line number Diff line number Diff line change 99 gsl-lite
1010 GIT_REPOSITORY https://github.com/gsl-lite/gsl-lite.git
1111 GIT_TAG master
12- EXCLUDE_FROM_ALL TRUE
1312 )
1413 FetchContent_MakeAvailable(gsl-lite)
15- target_compile_options (gsl::gsl-lite-v1 gsl_CONFIG_DEFAULTS_VERSION 1)
1614endif ()
Original file line number Diff line number Diff line change 99 libtorrent-rasterbar
1010 GIT_REPOSITORY https://github.com/arvidn/libtorrent.git
1111 GIT_TAG RC_2_0
12- EXCLUDE_FROM_ALL TRUE
1312 )
1413 FetchContent_MakeAvailable(libtorrent-rasterbar)
15- add_library (LibtorrentRasterbar::torrent-rasterbar ALIAS torrent-rasterbar)
1614endif ()
Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.14)
22
33include (../external/catch2.cmake)
4- include (../external/expected-lite.cmake)
54
65include (Catch)
76
You can’t perform that action at this time.
0 commit comments