From 99194790405398d2442eb5551b9f3e43e75f3883 Mon Sep 17 00:00:00 2001 From: Rui Maciel Date: Sun, 21 Jun 2020 11:12:45 +0100 Subject: [PATCH 1/4] Add Changelog.md --- Changelog.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Changelog.md diff --git a/Changelog.md b/Changelog.md new file mode 100644 index 0000000..0f28d7b --- /dev/null +++ b/Changelog.md @@ -0,0 +1,9 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] +### Added +- Changelog \ No newline at end of file From 025f735f86d4684dcfd12492210efb78ee9fefc3 Mon Sep 17 00:00:00 2001 From: Rui Maciel Date: Sun, 21 Jun 2020 18:24:44 +0100 Subject: [PATCH 2/4] Generate cmake config file --- CMakeLists.txt | 52 ++++++++++++++++++++---------------------- msexpr-config.cmake.in | 3 +++ 2 files changed, 28 insertions(+), 27 deletions(-) create mode 100644 msexpr-config.cmake.in diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e44e03..2e7021d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,46 +83,44 @@ if (${ENABLE_TESTS}) endif() install(TARGETS msexpr - EXPORT msexprTargets + EXPORT msexpr-export LIBRARY DESTINATION lib ARCHIVE DESTINATION lib RUNTIME DESTINATION bin - INCLUDES DESTINATION include ) -install( - FILES ${msexpr_INCLUDES} - DESTINATION "include/msexpr" - COMPONENT Devel - ) +install( FILES ${msexpr_INCLUDES} + DESTINATION include/msexpr +) + +install(EXPORT msexpr-export + FILE msexpr-targets.cmake + DESTINATION lib/cmake/msexpr +) include(CMakePackageConfigHelpers) -write_basic_package_version_file( - "${CMAKE_CURRENT_BINARY_DIR}/msexpr/msexpr-config-version.cmake" - VERSION ${PROJECT_VERSION} - COMPATIBILITY AnyNewerVersion +# generate the config file that is includes the exports +configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/msexpr-config.cmake.in + "${CMAKE_CURRENT_BINARY_DIR}/msexpr-config.cmake" + INSTALL_DESTINATION "lib/cmake/example" + NO_SET_AND_CHECK_MACRO + NO_CHECK_REQUIRED_COMPONENTS_MACRO ) -export(EXPORT msexprTargets - FILE "${CMAKE_CURRENT_BINARY_DIR}/msexpr/msexpr-targets.cmake" +# generate the version file for the config file +write_basic_package_version_file( + "${CMAKE_CURRENT_BINARY_DIR}/msexpr-ConfigVersion.cmake" + VERSION "${Tutorial_VERSION_MAJOR}.${Tutorial_VERSION_MINOR}" + COMPATIBILITY AnyNewerVersion ) -set(ConfigPackageLocation lib/cmake/msexpr) - -install(EXPORT msexprTargets - FILE "msexpr-targets.cmake" - DESTINATION ${ConfigPackageLocation} +# install the configuration file +install(FILES + ${CMAKE_CURRENT_BINARY_DIR}/msexpr-config.cmake + DESTINATION lib/cmake/msexpr ) - -install( - FILES "${CMAKE_CURRENT_BINARY_DIR}/msexpr/msexpr-config-version.cmake" - DESTINATION ${ConfigPackageLocation} - COMPONENT Devel -) - - - + #Setup CPACK to generate installer set(CPACK_PACKAGE_NAME ${PROJECT_NAME}) set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION}) diff --git a/msexpr-config.cmake.in b/msexpr-config.cmake.in new file mode 100644 index 0000000..69a7e5b --- /dev/null +++ b/msexpr-config.cmake.in @@ -0,0 +1,3 @@ +@PACKAGE_INIT@ + +include ( "${CMAKE_CURRENT_LIST_DIR}/msexpr-targets.cmake" ) \ No newline at end of file From f9a16dbe5dd6bb711aaafea1829d3766fdd66a0f Mon Sep 17 00:00:00 2001 From: Rui Maciel Date: Thu, 31 Aug 2023 13:14:41 +0200 Subject: [PATCH 3/4] Bump version number to v1.0.0.0 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2e7021d..9fb1c8c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.7) project(msexpr - VERSION 0.0.3.0 + VERSION 1.0.0.0 LANGUAGES C ) From ebfaefbdf28bdb2a8cb553bb9f6d153afbbaca85 Mon Sep 17 00:00:00 2001 From: Rui Maciel Date: Thu, 31 Aug 2023 13:20:01 +0200 Subject: [PATCH 4/4] Update Changelog for Release-v1.0.0.0 --- Changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index 0f28d7b..1fb5291 100644 --- a/Changelog.md +++ b/Changelog.md @@ -4,6 +4,6 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [1.0.0.0] - 2023-08-31 ### Added - Changelog \ No newline at end of file