Fix for missing main directives
This commit is contained in:
parent
a0e2335253
commit
66043e8bcb
2
.cmake-format.yaml
Normal file
2
.cmake-format.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
markup:
|
||||
enable_markup: false
|
@ -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
|
||||
|
@ -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(
|
||||
|
@ -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)
|
||||
|
@ -1,4 +1,7 @@
|
||||
# CMake ROOT dict example
|
||||
|
||||
## [main]
|
||||
|
||||
cmake_minimum_required(VERSION 3.4...3.16)
|
||||
|
||||
project(RootDictExample LANGUAGES CXX)
|
||||
|
@ -1,3 +1,5 @@
|
||||
# CMake ROOT simple example
|
||||
|
||||
## [main]
|
||||
cmake_minimum_required(VERSION 3.1...3.16)
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
# CMake ROOT usefile example
|
||||
|
||||
## [main]
|
||||
cmake_minimum_required(VERSION 3.1...3.16)
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
# CMake simple example
|
||||
|
||||
## [main]
|
||||
|
||||
# Almost all CMake files should start with this
|
||||
|
Loading…
x
Reference in New Issue
Block a user