build: add version info to cmake
cmake_minimum_required(VERSION 3.8.2)
project(cglm LANGUAGES C)
+set(CGLM_VERSION_MAJOR 0)
+set(CGLM_VERSION_MINOR 7)
+set(CGLM_VERSION_PATCH 3)
+set(CGLM_VERSION ${CGLM_VERSION_MAJOR}.${CGLM_VERSION_MINOR}.${CGLM_VERSION_PATCH})
+
set(C_STANDARD 11)
set(C_STANDARD_REQUIRED YES)
@@ -163,6 +168,9 @@ add_library(cglm
src/ray.c
)
+set_target_properties(cglm PROPERTIES VERSION ${CGLM_VERSION}
+ SOVERSION ${CGLM_VERSION_MAJOR})
+
target_include_directories(cglm PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
)
