mirror of
1
0
Fork 0

Fix for missing main directives

This commit is contained in:
Henry Schreiner 2020-08-12 14:29:56 -04:00
parent a0e2335253
commit 66043e8bcb
8 changed files with 15 additions and 5 deletions

2
.cmake-format.yaml Normal file
View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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