commit 1e032e3fbad36d05f6c64f78d9d887471853f1d6 Author: cfif Date: Fri Jul 11 13:36:31 2025 +0300 Сборка нового проекта. Добавление основных модулей. diff --git a/VersionRandID.h.in b/VersionRandID.h.in new file mode 100644 index 0000000..cf7f03a --- /dev/null +++ b/VersionRandID.h.in @@ -0,0 +1 @@ +#define VERSION_RANDOM_BUILD_IDENTIFIER "${VRS_BUILD_RND}" diff --git a/modular.json b/modular.json new file mode 100644 index 0000000..8802620 --- /dev/null +++ b/modular.json @@ -0,0 +1,10 @@ +{ + "cmake": { + "inc_dirs": [ + "./" + ], + "srcs": [ + + ] + } +} \ No newline at end of file diff --git a/version.cmake b/version.cmake new file mode 100755 index 0000000..649bd15 --- /dev/null +++ b/version.cmake @@ -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}\") \ No newline at end of file