Skip to content

Commit 1504ff1

Browse files
Enable interface header set verification
1 parent 401c89f commit 1504ff1

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

CMakeLists.txt

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ configure_file(
4545
)
4646

4747
set(CMAKE_CXX_EXTENSIONS OFF)
48-
49-
include(FetchContent)
50-
include(GNUInstallDirs)
48+
set(CMAKE_VERIFY_INTERFACE_HEADER_SETS ON)
5149

5250
# [CMAKE.LIBRARY_NAME]
5351
add_library(beman.any_view INTERFACE)
@@ -60,6 +58,27 @@ target_include_directories(
6058
$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include>
6159
$<INSTALL_INTERFACE:include>
6260
)
61+
target_sources(
62+
beman.any_view
63+
PUBLIC
64+
FILE_SET HEADERS
65+
BASE_DIRS include
66+
FILES
67+
include/beman/any_view/detail/any_iterator.hpp
68+
include/beman/any_view/detail/concepts.hpp
69+
include/beman/any_view/detail/intrusive_small_ptr.hpp
70+
include/beman/any_view/detail/iterator_adaptor.hpp
71+
include/beman/any_view/detail/iterator_interface.hpp
72+
include/beman/any_view/detail/type_traits.hpp
73+
include/beman/any_view/detail/utility.hpp
74+
include/beman/any_view/detail/view_adaptor.hpp
75+
include/beman/any_view/detail/view_interface.hpp
76+
include/beman/any_view/any_view_options.hpp
77+
include/beman/any_view/any_view.hpp
78+
include/beman/any_view/concepts.hpp
79+
)
80+
81+
include(GNUInstallDirs)
6382

6483
install(
6584
TARGETS beman.any_view

tests/beman/any_view/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
22

3+
include(FetchContent)
34
# Fetch Benchmark
45
FetchContent_Declare(
56
benchmark

0 commit comments

Comments
 (0)