aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/licensepp/FindCryptoPP.cmake
blob: c7e0f709c098b6c1d20324bf1c48c096f252cb72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
find_path(CRYPTOPP_INCLUDE_DIRS NAMES cryptopp/cryptlib.h)

get_filename_component(_prefix_path ${CRYPTOPP_INCLUDE_DIRS} PATH)

find_library(
    CRYPTOPP_LIBRARY_DEBUG
    NAMES cryptopp-static cryptopp
    PATHS ${_prefix_path}/debug/lib
    NO_DEFAULT_PATH
)
find_library(
    CRYPTOPP_LIBRARY_RELEASE
    NAMES cryptopp-static cryptopp
    PATHS ${_prefix_path}/lib
    NO_DEFAULT_PATH
)

unset(_prefix_path)

include(SelectLibraryConfigurations)
select_library_configurations(CRYPTOPP)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(
    CryptoPP
    REQUIRED_VARS CRYPTOPP_LIBRARIES CRYPTOPP_INCLUDE_DIRS
)