mirror of
https://github.com/DaveGamble/cJSON
synced 2024-12-24 23:52:07 +00:00
CMake: Set version and soversion
This commit is contained in:
parent
8a46cb7b55
commit
9a4657fbee
@ -3,6 +3,11 @@ cmake_minimum_required(VERSION 2.8)
|
||||
set(PROJ_CJSON cJSON)
|
||||
|
||||
project(${PROJ_CJSON} C)
|
||||
set(CJSON_VERSION_MAJOR 1)
|
||||
set(CJSON_VERSION_MINOR 0)
|
||||
set(CJSON_VERSION_PATCH 0)
|
||||
set(CJSON_VERSION_SO 1)
|
||||
set(CJSON_VERSION "${CJSON_VERSION_MAJOR}.${CJSON_VERSION_MINOR}.${CJSON_VERSION_PATCH}")
|
||||
|
||||
file(GLOB HEADERS cJSON.h)
|
||||
set(SOURCES cJSON.c)
|
||||
|
Loading…
Reference in New Issue
Block a user