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
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

cmake_minimum_required(VERSION 3.25)
cmake_minimum_required(VERSION 3.28...4.2)

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

# [CMAKE.SKIP_TESTS]
Expand All @@ -24,11 +24,13 @@ option(
${PROJECT_IS_TOP_LEVEL}
)

include(CTest)
# for find of beman-install-library
include(infra/cmake/beman-install-library-config.cmake)

add_subdirectory(src/beman/exemplar)

if(BEMAN_EXEMPLAR_BUILD_TESTS)
enable_testing()
add_subdirectory(tests/beman/exemplar)
endif()

Expand Down
8 changes: 5 additions & 3 deletions cookiecutter/{{cookiecutter.project_name}}/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

cmake_minimum_required(VERSION 3.25)
cmake_minimum_required(VERSION 3.28...4.2)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3.28 is minimum for modules -- we should have that as minimum now


project(
beman.{{cookiecutter.project_name}} # CMake Project Name, which is also the name of the top-level
# targets (e.g., library, executable, etc.).
DESCRIPTION "{{cookiecutter.description}}"
LANGUAGES CXX
VERSION 2.2.1
VERSION 0.1.0
)

# [CMAKE.SKIP_TESTS]
Expand All @@ -24,11 +24,13 @@ option(
${PROJECT_IS_TOP_LEVEL}
)

include(CTest)
# for find of beman-install-library
include(infra/cmake/beman-install-library-config.cmake)

add_subdirectory(src/beman/{{cookiecutter.project_name}})

if(BEMAN_{{cookiecutter.project_name.upper()}}_BUILD_TESTS)
enable_testing()
add_subdirectory(tests/beman/{{cookiecutter.project_name}})
endif()

Expand Down