Skip to content

Commit 039a203

Browse files
committed
Initial project setup for beman.transform_view_join
1 parent 91c0615 commit 039a203

File tree

67 files changed

+88
-4667
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+88
-4667
lines changed

CMakeLists.txt

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,48 @@
33
cmake_minimum_required(VERSION 3.25)
44

55
project(
6-
beman.exemplar # CMake Project Name, which is also the name of the top-level
6+
beman.transform_join_view # CMake Project Name, which is also the name of the top-level
77
# targets (e.g., library, executable, etc.).
8-
DESCRIPTION "A Beman Library Exemplar"
8+
DESCRIPTION "Beman transform_join_view library"
99
LANGUAGES CXX
1010
VERSION 2.2.1
1111
)
1212

1313
# [CMAKE.SKIP_TESTS]
1414
option(
15-
BEMAN_EXEMPLAR_BUILD_TESTS
15+
BEMAN_TRANSFORM_JOIN_VIEW_BUILD_TESTS
1616
"Enable building tests and test infrastructure. Default: ${PROJECT_IS_TOP_LEVEL}. Values: { ON, OFF }."
1717
${PROJECT_IS_TOP_LEVEL}
1818
)
1919

2020
# [CMAKE.SKIP_EXAMPLES]
2121
option(
22-
BEMAN_EXEMPLAR_BUILD_EXAMPLES
22+
BEMAN_TRANSFORM_JOIN_VIEW_BUILD_EXAMPLES
2323
"Enable building examples. Default: ${PROJECT_IS_TOP_LEVEL}. Values: { ON, OFF }."
2424
${PROJECT_IS_TOP_LEVEL}
2525
)
2626

2727
include(CTest)
2828

29-
add_subdirectory(src/beman/exemplar)
29+
# Define header-only library
30+
add_library(beman.transform_join_view INTERFACE)
31+
add_library(beman::transform_join_view ALIAS beman.transform_join_view)
32+
33+
target_sources(
34+
beman.transform_join_view
35+
INTERFACE
36+
FILE_SET HEADERS
37+
BASE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/include"
38+
FILES
39+
"${CMAKE_CURRENT_SOURCE_DIR}/include/beman/transform_join_view/identity.hpp"
40+
)
41+
42+
target_compile_features(beman.transform_join_view INTERFACE cxx_std_20)
3043

31-
if(BEMAN_EXEMPLAR_BUILD_TESTS)
32-
add_subdirectory(tests/beman/exemplar)
44+
if(BEMAN_TRANSFORM_JOIN_VIEW_BUILD_TESTS)
45+
add_subdirectory(tests/beman/transform_join_view)
3346
endif()
3447

35-
if(BEMAN_EXEMPLAR_BUILD_EXAMPLES)
48+
if(BEMAN_TRANSFORM_JOIN_VIEW_BUILD_EXAMPLES)
3649
add_subdirectory(examples)
3750
endif()

0 commit comments

Comments
 (0)