Skip to content

Commit

Permalink
CMake: include cmake/CustomSteps.cmake if file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
HuguesDelorme committed Nov 12, 2024
1 parent a71af05 commit 7650a08
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ build-*
*.user.*
custom.pri
env.pri
cmake/CustomSteps.cmake
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -692,3 +692,12 @@ add_custom_target(
src/mayo_version.h.cmake
README.md
)

##########
# Custom steps to be processed, if file ".../cmake/CustomSteps.cmake" exists
##########

if (EXISTS "${PROJECT_SOURCE_DIR}/cmake/CustomSteps.cmake")
message(STATUS "File '${PROJECT_SOURCE_DIR}/cmake/CustomSteps.cmake' found...")
include(${PROJECT_SOURCE_DIR}/cmake/CustomSteps.cmake)
endif()

0 comments on commit 7650a08

Please sign in to comment.