A tool for deriving PKG packet encryption keys for ps4 written in c++
| 1 | include(FindPackageHandleStandardArgs) |
| 2 | |
| 3 | find_library(CryptoPP_LIBRARY NAMES cryptopp) |
| 4 | find_path(CryptoPP_INCLUDE_PATH NAMES cryptopp/cryptlib.h) |
| 5 | |
| 6 | find_package_handle_standard_args( |
| 7 | CryptoPP |
| 8 | REQUIRED_VARS CryptoPP_LIBRARY CryptoPP_INCLUDE_PATH |
| 9 | ) |
| 10 | |
| 11 | if(CryptoPP_FOUND AND NOT TARGET cryptopp::cryptopp) |
| 12 | add_library(cryptopp::cryptopp UNKNOWN IMPORTED) |
| 13 | set_property(TARGET cryptopp::cryptopp PROPERTY IMPORTED_LOCATION "${CryptoPP_LIBRARY}") |
| 14 | set_property(TARGET cryptopp::cryptopp PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${CryptoPP_INCLUDE_PATH}") |
| 15 | endif() |
| 16 |