Skip to content

Commit

Permalink
Fix tag in CMake (#6)
Browse files Browse the repository at this point in the history
- Collect project source files.
  • Loading branch information
dmg0345 authored Oct 30, 2023
2 parents cc8e491 + b99021c commit 4265a52
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions other/cmake/tag.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
# This file tags all the application, library and test files with data such as the project author and timestamps.
########################################################################################################################

# Collect all '.c', '.cpp', '.h' and '.hpp' files from relevant folders for tagging.
file(GLOB_RECURSE PROJECT_SOURCE_FILES
"${PROJECT_ROOT_DIR}/src/*.c"
"${PROJECT_ROOT_DIR}/src/*.h"
"${PROJECT_ROOT_DIR}/tests/tests/*.c"
"${PROJECT_ROOT_DIR}/tests/tests/*.h"
)

# Check if tagging filenames only.
if (${CFG_TAG} STREQUAL "FILENAMES_ONLY")
# Loop each file in the project source files and silently tag their filename if not already tagged.
Expand Down

0 comments on commit 4265a52

Please sign in to comment.