Set version in cmake

fixes-turtlebasket
Mattia Montanari 2022-07-09 23:35:43 +02:00
parent d8c123c434
commit 6eddce402d
1 changed files with 8 additions and 6 deletions

View File

@ -21,16 +21,18 @@
# FOR A PARTICULAR PURPOSE. See GNU General Public License for details. # # FOR A PARTICULAR PURPOSE. See GNU General Public License for details. #
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
cmake_policy(SET CMP0048 NEW) cmake_policy(SET CMP0048 NEW)
cmake_policy(SET CMP0079 NEW)
option(BUILD_EXAMPLE "Build demo" ON) option(BUILD_EXAMPLE "Build demo" ON)
set(GK_VERSION_MAJOR 3)
set(GK_VERSION_MINOR 0)
set(GK_VERSION_PATCH 0)
project(lib_opengjk_ce project(lib_opengjk_ce
LANGUAGES C LANGUAGES C
VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH} DESCRIPTION "openGJK library community edition (CE)"
DESCRIPTION "openGJK library" HOMEPAGE_URL "www.mattiamontanari.com/opengjk/"
HOMEPAGE_URL "https://mattiamontanari.com/opengjk" VERSION ${GK_VERSION_MAJOR}.${GK_VERSION_MINOR}.${GK_VERSION_PATCH}
) )
set( C_STANDARD 99) set( C_STANDARD 99)