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

@ -22,15 +22,17 @@
cmake_minimum_required(VERSION 2.8)
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
LANGUAGES C
VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}
DESCRIPTION "openGJK library"
HOMEPAGE_URL "https://mattiamontanari.com/opengjk"
DESCRIPTION "openGJK library community edition (CE)"
HOMEPAGE_URL "www.mattiamontanari.com/opengjk/"
VERSION ${GK_VERSION_MAJOR}.${GK_VERSION_MINOR}.${GK_VERSION_PATCH}
)
set( C_STANDARD 99)