diff --git a/CMakeLists.txt b/CMakeLists.txt index c098765d..e905e4bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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] @@ -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() diff --git a/cookiecutter/{{cookiecutter.project_name}}/CMakeLists.txt b/cookiecutter/{{cookiecutter.project_name}}/CMakeLists.txt index dcad0c2c..830c85f9 100644 --- a/cookiecutter/{{cookiecutter.project_name}}/CMakeLists.txt +++ b/cookiecutter/{{cookiecutter.project_name}}/CMakeLists.txt @@ -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.{{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] @@ -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()