]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | find_path(CRYPTOPP_INCLUDE_DIRS NAMES cryptopp/cryptlib.h) |
2 | ||
3 | get_filename_component(_prefix_path ${CRYPTOPP_INCLUDE_DIRS} PATH) | |
4 | ||
5 | find_library( | |
6 | CRYPTOPP_LIBRARY_DEBUG | |
7 | NAMES cryptopp-static cryptopp | |
8 | PATHS ${_prefix_path}/debug/lib | |
9 | NO_DEFAULT_PATH | |
10 | ) | |
11 | find_library( | |
12 | CRYPTOPP_LIBRARY_RELEASE | |
13 | NAMES cryptopp-static cryptopp | |
14 | PATHS ${_prefix_path}/lib | |
15 | NO_DEFAULT_PATH | |
16 | ) | |
17 | ||
18 | unset(_prefix_path) | |
19 | ||
20 | include(SelectLibraryConfigurations) | |
21 | select_library_configurations(CRYPTOPP) | |
22 | ||
23 | include(FindPackageHandleStandardArgs) | |
24 | find_package_handle_standard_args( | |
25 | CryptoPP | |
26 | REQUIRED_VARS CRYPTOPP_LIBRARIES CRYPTOPP_INCLUDE_DIRS | |
27 | ) |