diff --git a/CMakeLists.txt b/CMakeLists.txt index 5197fbffe..9c94f041b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ #============================================================================== # GMDS Project #============================================================================== -cmake_minimum_required(VERSION 3.10.0) +cmake_minimum_required(VERSION 3.14) #============================================================================== # Operating System specificities (must be put at first) #============================================================================== @@ -9,7 +9,11 @@ if(APPLE) set(CMAKE_OSX_ARCHITECTURES arm64) endif() #============================================================================== -project(gmds VERSION 1.0 LANGUAGES CXX) +include (cmake/version.cmake) + +project(gmds + LANGUAGES CXX + VERSION ${GMDS_VERSION}) #============================================================================== # RPATH handling according to : # https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/RPATH-handling diff --git a/cmake/version.cmake b/cmake/version.cmake new file mode 100644 index 000000000..f4b76a694 --- /dev/null +++ b/cmake/version.cmake @@ -0,0 +1,10 @@ +# +# version.cmake : version du projet +# + +set (GMDS_MAJOR_VERSION "1") +set (GMDS_MINOR_VERSION "3") +set (GMDS_RELEASE_VERSION "1") +set (GMDS_VERSION ${GMDS_MAJOR_VERSION}.${GMDS_MINOR_VERSION}.${GMDS_RELEASE_VERSION}) + +