diff --git a/src/dynarmic/CMakeLists.txt b/src/dynarmic/CMakeLists.txt index 00f58f0d63..6c0fccd6e4 100644 --- a/src/dynarmic/CMakeLists.txt +++ b/src/dynarmic/CMakeLists.txt @@ -3,6 +3,12 @@ cmake_minimum_required(VERSION 3.12) +set(dynarmic_VERSION_MAJOR 7) +set(dynarmic_VERSION_MINOR 0) +set(dynarmic_VERSION_PATCH 0) + +set(dynarmic_VERSION ${dynarmic_VERSION_MAJOR}.${dynarmic_VERSION_MINOR}.${dynarmic_VERSION_PATCH}) + # Determine if we're built as a subproject (using add_subdirectory) # or if this is the master project. set(MASTER_PROJECT OFF) diff --git a/src/dynarmic/src/dynarmic/CMakeLists.txt b/src/dynarmic/src/dynarmic/CMakeLists.txt index bf960e5168..9575eaab6f 100644 --- a/src/dynarmic/src/dynarmic/CMakeLists.txt +++ b/src/dynarmic/src/dynarmic/CMakeLists.txt @@ -351,6 +351,10 @@ target_include_directories(dynarmic PUBLIC $ $ ) +set_target_properties(dynarmic PROPERTIES + VERSION ${dynarmic_VERSION} + SOVERSION ${dynarmic_VERSION_MAJOR}.${dynarmic_VERSION_MINOR} +) if (TARGET unordered_dense::unordered_dense) # weird quirk of system installs