updated build system

This commit is contained in:
2024-07-09 13:12:02 -05:00
parent 097507a2d9
commit 0c414fc8a6
3 changed files with 14 additions and 8 deletions

View File

@ -32,6 +32,11 @@ if(PROJECT_BUILD)
)
include(project.cmake)
if (PROJECT_VERSION)
file(WRITE ${CMAKE_CURRENT_SOURCE_DIR}/dist/version.sh "export PROJECT_VERSION=${PROJECT_VERSION}")
add_definitions(-DPROJECT_VERSION=${PROJECT_VERSION})
endif()
else()
message(STATUS "-=[CMake Settings]=-")
message(STATUS " C standard: ${CMAKE_C_STANDARD}")