diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-06-21 12:58:27 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2022-06-21 13:00:10 +0300 |
commit | 1c57cb722a06c1a8399cb8d7465ab3cef1a6af59 (patch) | |
tree | b6a2a1fbcb82aba65d268a01df9bc7233351d5a0 /src/CMakeLists.txt | |
parent | 7e8163e126a6f070df840ca6799e865881eb3430 (diff) |
CMake: install cmake version info
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index dfc845d49..878bce1bb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -54,3 +54,9 @@ endif(NOT BUILD_LIBRARIES_ONLY) add_subdirectory(plugins) install(EXPORT ownCloudConfig DESTINATION "${KDE_INSTALL_CMAKEPACKAGEDIR}/ownCloud" NAMESPACE ownCloud::) + +ecm_setup_version(PROJECT VARIABLE_PREFIX ownCloud + PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/ownCloudConfigVersion.cmake" + SOVERSION ${MIRALL_SOVERSION}) + +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ownCloudConfigVersion.cmake" DESTINATION "${KDE_INSTALL_CMAKEPACKAGEDIR}/ownCloud") |