Version library

This commit is contained in:
Alex D. 2020-12-30 18:48:48 +00:00
parent 91ca9b44bc
commit 0ae8fc3a5a
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 3.16)
project(microirc LANGUAGES C)
set(library_VERSION "2020.12.20")
OPTION(BUILD_TESTS "Build tests for ctest" OFF)
OPTION(BUILD_IRCV3 "Build IRCv3 components" ON)
OPTION(BUILD_HELPERS "Build message helpers" ON)
@ -48,12 +50,14 @@ if ( BUILD_HELPERS )
endif()
endif()
add_library(uirc SHARED ${build_FILES})
add_library(uirc ${build_FILES})
include(GNUInstallDirs)
set_target_properties(uirc PROPERTIES
C_STANDARD 99
VERSION ${library_VERSION}
SOVERSION ${library_VERSION}
PUBLIC_HEADER "include/functions.h;include/helpers.h;include/mappings.h;include/types.h;include/uirc.h"
)