Skip to content

Commit 9b2d110

Browse files
committed
External file to manage version number
1 parent 11da11e commit 9b2d110

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
cmake_minimum_required(VERSION 3.14.0)
22

33
include(CMakePrintHelpers)
4-
4+
include (cmake/version.cmake)
55

66
project(smooth3D
7-
LANGUAGES C CXX
8-
VERSION 3.3.0)
7+
LANGUAGES C CXX
8+
VERSION ${SMOOTH3D_VERSION})
99

1010
cmake_print_variables(smooth3D_VERSION)
1111

cmake/version.cmake

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#
2+
# version.cmake : version du projet
3+
#
4+
5+
set (SMOOTH3D_MAJOR_VERSION "3")
6+
set (SMOOTH3D_MINOR_VERSION "3")
7+
set (SMOOTH3D_RELEASE_VERSION "1")
8+
set (SMOOTH3D_VERSION ${SMOOTH3D_MAJOR_VERSION}.${SMOOTH3D_MINOR_VERSION}.${SMOOTH3D_RELEASE_VERSION})
9+
10+

0 commit comments

Comments
 (0)