mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03: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)
|
set(PROJ_CJSON cJSON)
|
||||||
|
|
||||||
project(${PROJ_CJSON} C)
|
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)
|
file(GLOB HEADERS cJSON.h)
|
||||||
set(SOURCES cJSON.c)
|
set(SOURCES cJSON.c)
|
||||||
|
Loading…
Reference in New Issue
Block a user