Сборка нового проекта. Добавление основных модулей.

This commit is contained in:
cfif 2025-07-11 13:36:31 +03:00
commit 1e032e3fba
3 changed files with 17 additions and 0 deletions

1
VersionRandID.h.in Normal file
View File

@ -0,0 +1 @@
#define VERSION_RANDOM_BUILD_IDENTIFIER "${VRS_BUILD_RND}"

10
modular.json Normal file
View File

@ -0,0 +1,10 @@
{
"cmake": {
"inc_dirs": [
"./"
],
"srcs": [
]
}
}

6
version.cmake Executable file
View File

@ -0,0 +1,6 @@
set(WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR})
string(RANDOM VRS_BUILD_RND)
configure_file(${WORKING_DIRECTORY}/VersionRandID.h.in ${WORKING_DIRECTORY}/VersionRandID.h)
message(STATUS "New build identifier: " \"${VRS_BUILD_RND}\")