summaryrefslogtreecommitdiffhomepage
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorAhmad Fatoum <[email protected]>2017-12-10 21:57:25 +0100
committerAhmad Fatoum <[email protected]>2017-12-11 10:25:06 +0100
commitd24b89bb0ec8abe7243963bdbca96cb254c27256 (patch)
tree84abd24632e011919f42695cb1bdf11683f8fb11 /src/CMakeLists.txt
parentde78fa69bc49afa83898e33e73b6dfbffc43f0e4 (diff)
downloadraylib-d24b89bb0ec8abe7243963bdbca96cb254c27256.tar.gz
raylib-d24b89bb0ec8abe7243963bdbca96cb254c27256.zip
Add library versioning to Make/CMake build systems
See #401 for the discussion. Also bumps version number to 1.9.2 without the -dev, because neither ELF nor MachO like such a suffix. The -dev suffix will have to be restricted to the git tags.
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 200ae6f9..e86bff9b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -2,7 +2,8 @@
project(raylib)
include("../utils.cmake")
-set(PROJECT_VERSION 1.9.1-dev)
+set(PROJECT_VERSION 1.9.2)
+set(API_VERSION 1)
set(RAYLIB raylib) # Name of the generated library
### Config options ###
@@ -123,7 +124,11 @@ if(${PLATFORM} MATCHES "PLATFORM_DESKTOP")
set(CMAKE_MACOSX_RPATH ON)
target_link_libraries(${RAYLIB}_shared ${LIBS_PRIVATE})
- set_target_properties(${RAYLIB}_shared PROPERTIES PUBLIC_HEADER "raylib.h")
+ set_target_properties(${RAYLIB}_shared PROPERTIES
+ VERSION ${PROJECT_VERSION}
+ SOVERSION ${API_VERSION}
+ PUBLIC_HEADER "raylib.h"
+ )
if(WIN32)
install(
TARGETS ${RAYLIB}_shared