Skip to content

Commit

Permalink
Merge branch 'release/1.0.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
ruimaciel committed Aug 31, 2023
2 parents c7a9943 + ebfaefb commit cbd7aeb
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 28 deletions.
54 changes: 26 additions & 28 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.7)

project(msexpr
VERSION 0.0.3.0
VERSION 1.0.0.0
LANGUAGES C
)

Expand Down Expand Up @@ -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})
Expand Down
9 changes: 9 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -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).

## [1.0.0.0] - 2023-08-31
### Added
- Changelog
3 changes: 3 additions & 0 deletions msexpr-config.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@PACKAGE_INIT@

include ( "${CMAKE_CURRENT_LIST_DIR}/msexpr-targets.cmake" )

0 comments on commit cbd7aeb

Please sign in to comment.