diff options
author | Andrea Pappacoda <[email protected]> | 2021-10-12 10:09:21 +0200 |
---|---|---|
committer | merry <[email protected]> | 2021-10-30 19:03:23 +0100 |
commit | 4dcebc18228114761ad9dc6a3543bcd4f3317396 (patch) | |
tree | 606076885487d99ff5bb8222f911fd663e7fa632 /CMakeModules | |
parent | cce7e4ee5d7b07a4609c73c053fbf57dc8c78458 (diff) | |
download | dynarmic-4dcebc18228114761ad9dc6a3543bcd4f3317396.tar.gz dynarmic-4dcebc18228114761ad9dc6a3543bcd4f3317396.zip |
build(cmake): add install target
This makes dynarmic installable, and also adds a CMake package config
file, that allows projects to use `find_package(dynarmic)` to import the
library.
I know #636 adds the same thing, but while experimenting with the
different install options in
https://github.com/merryhime/dynarmic/pull/636#discussion_r725656034
I ended up with a working patch, so I'm proposing this as well. This
implements solution 2.
Diffstat (limited to 'CMakeModules')
-rw-r--r-- | CMakeModules/dynarmicConfig.cmake.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeModules/dynarmicConfig.cmake.in b/CMakeModules/dynarmicConfig.cmake.in new file mode 100644 index 00000000..8c9ad12a --- /dev/null +++ b/CMakeModules/dynarmicConfig.cmake.in @@ -0,0 +1,5 @@ +@PACKAGE_INIT@ + +include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]") + +check_required_components(@PROJECT_NAME@) |