From 0c6a0b1d5f9e7ce339dde4bda92804b6a45b42ef Mon Sep 17 00:00:00 2001 From: bugdea1er Date: Sat, 10 Aug 2024 20:24:02 +0300 Subject: [PATCH] Release 1.0 --- CMakeLists.txt | 2 +- src/CMakeLists.txt | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 22b918b..586d406 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.16) project(tmp - VERSION 0.9 + VERSION 1.0 DESCRIPTION "RAII-wrappers for unique temporary files and directories for modern C++" HOMEPAGE_URL "https://github.com/bugdea1er/tmp" LANGUAGES CXX) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 966a432..dde7ce3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,7 +1,7 @@ find_package(Filesystem REQUIRED) include(GenerateExportHeader) -add_library(${PROJECT_NAME} SHARED entry.cpp file.cpp directory.cpp utils.cpp) +add_library(${PROJECT_NAME} entry.cpp file.cpp directory.cpp utils.cpp) target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_17) target_link_libraries(${PROJECT_NAME} PUBLIC std::filesystem) @@ -10,7 +10,9 @@ set_target_properties(${PROJECT_NAME} UNITY_BUILD ON CXX_EXTENSIONS OFF CXX_VISIBILITY_PRESET hidden - VISIBILITY_INLINES_HIDDEN ON) + VISIBILITY_INLINES_HIDDEN ON + VERSION ${PROJECT_VERSION} + SOVERSION ${PROJECT_VERSION_MAJOR}) target_include_directories(${PROJECT_NAME} PUBLIC "$"