Skip to content

Commit

Permalink
add so version
Browse files Browse the repository at this point in the history
  • Loading branch information
AdhocMan committed Mar 26, 2024
1 parent a4cb25c commit 00d7a8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
project(gtest_mpi LANGUAGES CXX VERSION 2.0.0)

include(GNUInstallDirs)
Expand All @@ -20,6 +20,10 @@ target_link_libraries(gtest_mpi PUBLIC MPI::MPI_CXX GTest::gtest)
target_include_directories(gtest_mpi PUBLIC $<INSTALL_INTERFACE:include>) # for install(EXPORT ...)
target_include_directories(gtest_mpi PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>) # for export(...)


set_property(TARGET gtest_mpi PROPERTY VERSION ${CMAKE_PROJECT_VERSION})
set_property(TARGET gtest_mpi PROPERTY SOVERSION ${CMAKE_PROJECT_VERSION_MAJOR})

include(CMakePackageConfigHelpers)
write_basic_package_version_file(
"${PROJECT_BINARY_DIR}/gtest_mpi-version.cmake"
Expand Down

0 comments on commit 00d7a8d

Please sign in to comment.