Skip to content

Commit

Permalink
Merge pull request #60 from antoniovazquezblanco/dev/cmake_modules
Browse files Browse the repository at this point in the history
Use submodules for cmake modules
  • Loading branch information
BatchDrake committed Jun 7, 2023
2 parents bd4295d + 9d2e887 commit 9181e56
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 188 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Expand Up @@ -7,3 +7,7 @@ updates:
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: "weekly"
3 changes: 3 additions & 0 deletions .github/workflows/cmake.yml
Expand Up @@ -16,6 +16,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0

- name: Build
Expand Down Expand Up @@ -49,6 +50,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0

- name: Build
Expand All @@ -70,6 +72,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0

- name: Build
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/codeql.yml
Expand Up @@ -23,6 +23,9 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
9 changes: 9 additions & 0 deletions .gitmodules
@@ -0,0 +1,9 @@
[submodule "cmake/cmake-gitversiondetect"]
path = cmake/cmake-gitversiondetect
url = https://github.com/antoniovazquezblanco/cmake-gitversiondetect.git
[submodule "cmake/cmake-pcfilegenerator"]
path = cmake/cmake-pcfilegenerator
url = https://github.com/antoniovazquezblanco/cmake-pcfilegenerator.git
[submodule "cmake/cmake-relativefilemacro"]
path = cmake/cmake-relativefilemacro
url = https://github.com/antoniovazquezblanco/cmake-relativefilemacro.git
3 changes: 2 additions & 1 deletion CMakeLists.txt
Expand Up @@ -21,7 +21,8 @@
cmake_minimum_required(VERSION 3.20.0)

# CMake modules search path
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
file(GLOB MODULE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/cmake/*/" LIST_DIRECTORIES true)
list(APPEND CMAKE_MODULE_PATH "${MODULE_DIRS}")

# Use git version detect to obtain a project version based on tags
include(GitVersionDetect)
Expand Down
1 change: 1 addition & 0 deletions cmake/cmake-gitversiondetect
Submodule cmake-gitversiondetect added at 0b35a7
1 change: 1 addition & 0 deletions cmake/cmake-pcfilegenerator
Submodule cmake-pcfilegenerator added at c6012b
1 change: 1 addition & 0 deletions cmake/cmake-relativefilemacro
65 changes: 0 additions & 65 deletions cmake/modules/GitVersionDetect.cmake

This file was deleted.

75 changes: 0 additions & 75 deletions cmake/modules/PcFileGenerator.cmake

This file was deleted.

47 changes: 0 additions & 47 deletions cmake/modules/RelativeFileMacro.cmake

This file was deleted.

0 comments on commit 9181e56

Please sign in to comment.