Browse Source

Fix for missing main directives

merge-requests/43/head
Henry Schreiner 1 year ago
parent
commit
66043e8bcb
  1. 2
      .cmake-format.yaml
  2. 2
      .pre-commit-config.yaml
  3. 4
      examples/extended-project/CMakeLists.txt
  4. 3
      examples/fetch/CMakeLists.txt
  5. 3
      examples/root-dict/CMakeLists.txt
  6. 2
      examples/root-simple/CMakeLists.txt
  7. 2
      examples/root-usefile/CMakeLists.txt
  8. 2
      examples/simple-project/CMakeLists.txt

2
.cmake-format.yaml

@ -0,0 +1,2 @@
markup:
enable_markup: false

2
.pre-commit-config.yaml

@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
rev: v3.2.0
hooks:
- id: check-added-large-files
- id: check-case-conflict

4
examples/extended-project/CMakeLists.txt

@ -1,5 +1,5 @@
# Works with 3.11 and tested through 3.16
cmake_minimum_required(VERSION 3.11...3.16)
# Works with 3.11 and tested through 3.18
cmake_minimum_required(VERSION 3.11...3.18)
# Project name and a few useful settings. Other commands can pick up the results
project(

3
examples/fetch/CMakeLists.txt

@ -8,8 +8,7 @@ include(CTest)
FetchContent_Declare(
catch
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v2.13.0
)
GIT_TAG v2.13.0)
# CMake 3.14+
FetchContent_MakeAvailable(catch)

3
examples/root-dict/CMakeLists.txt

@ -1,4 +1,7 @@
# CMake ROOT dict example
## [main]
cmake_minimum_required(VERSION 3.4...3.16)
project(RootDictExample LANGUAGES CXX)

2
examples/root-simple/CMakeLists.txt

@ -1,3 +1,5 @@
# CMake ROOT simple example
## [main]
cmake_minimum_required(VERSION 3.1...3.16)

2
examples/root-usefile/CMakeLists.txt

@ -1,3 +1,5 @@
# CMake ROOT usefile example
## [main]
cmake_minimum_required(VERSION 3.1...3.16)

2
examples/simple-project/CMakeLists.txt

@ -1,3 +1,5 @@
# CMake simple example
## [main]
# Almost all CMake files should start with this

Loading…
Cancel
Save