Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 21 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,48 @@
cmake_minimum_required(VERSION 3.25)

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

# [CMAKE.SKIP_TESTS]
option(
BEMAN_EXEMPLAR_BUILD_TESTS
BEMAN_TRANSFORM_JOIN_VIEW_BUILD_TESTS
"Enable building tests and test infrastructure. Default: ${PROJECT_IS_TOP_LEVEL}. Values: { ON, OFF }."
${PROJECT_IS_TOP_LEVEL}
)

# [CMAKE.SKIP_EXAMPLES]
option(
BEMAN_EXEMPLAR_BUILD_EXAMPLES
BEMAN_TRANSFORM_JOIN_VIEW_BUILD_EXAMPLES
"Enable building examples. Default: ${PROJECT_IS_TOP_LEVEL}. Values: { ON, OFF }."
${PROJECT_IS_TOP_LEVEL}
)

include(CTest)

add_subdirectory(src/beman/exemplar)
# Define header-only library
add_library(beman.transform_join_view INTERFACE)
add_library(beman::transform_join_view ALIAS beman.transform_join_view)

target_sources(
beman.transform_join_view
INTERFACE
FILE_SET HEADERS
BASE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/include"
FILES
"${CMAKE_CURRENT_SOURCE_DIR}/include/beman/transform_join_view/identity.hpp"
)

target_compile_features(beman.transform_join_view INTERFACE cxx_std_20)

if(BEMAN_EXEMPLAR_BUILD_TESTS)
add_subdirectory(tests/beman/exemplar)
if(BEMAN_TRANSFORM_JOIN_VIEW_BUILD_TESTS)
add_subdirectory(tests/beman/transform_join_view)
endif()

if(BEMAN_EXEMPLAR_BUILD_EXAMPLES)
if(BEMAN_TRANSFORM_JOIN_VIEW_BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
Loading
Loading