Skip to content

Commit

Permalink
Bumped version for a new release.
Browse files Browse the repository at this point in the history
- Specified the required version of dependencies.
- Added a version file for downstream projects.
  • Loading branch information
LTLA committed Jun 7, 2024
1 parent 0135285 commit 9b5e4cf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.24)

project(kmeans
VERSION 2.0.0
VERSION 3.0.0
DESCRIPTION "A C++ port of the Hartigan-Wong k-means algorithm"
LANGUAGES CXX)

Expand All @@ -20,8 +20,8 @@ option(KMEANS_FETCH_EXTERN "Automatically fetch CppKmeans's external dependencie
if(KMEANS_FETCH_EXTERN)
add_subdirectory(extern)
else()
find_package(ltla_aarand CONFIG REQUIRED)
find_package(ltla_powerit CONFIG REQUIRED)
find_package(ltla_aarand 1.0.0 CONFIG REQUIRED)
find_package(ltla_powerit 2.0.0 CONFIG REQUIRED)
endif()

target_link_libraries(kmeans INTERFACE ltla::aarand ltla::powerit)
Expand Down Expand Up @@ -56,5 +56,10 @@ configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Config.cmake.in
"${CMAKE_CURRENT_BINARY_DIR}/ltla_kmeansConfig.cmake"
INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/ltla_kmeans)

write_basic_package_version_file(
"${CMAKE_CURRENT_BINARY_DIR}/ltla_kmeansConfigVersion.cmake"
COMPATIBILITY SameMajorVersion)

install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ltla_kmeansConfig.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/ltla_kmeansConfigVersion.cmake"
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/ltla_kmeans)
4 changes: 2 additions & 2 deletions cmake/Config.cmake.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@PACKAGE_INIT@

include(CMakeFindDependencyMacro)
find_dependency(ltla_aarand CONFIG REQUIRED)
find_dependency(ltla_powerit CONFIG REQUIRED)
find_dependency(ltla_aarand 1.0.0 CONFIG REQUIRED)
find_dependency(ltla_powerit 2.0.0 CONFIG REQUIRED)

include("${CMAKE_CURRENT_LIST_DIR}/ltla_kmeansTargets.cmake")

0 comments on commit 9b5e4cf

Please sign in to comment.