First Commit
This commit is contained in:
19
externals/cryptopp-cmake/test/integration/int-find-package/CMakeLists.txt
vendored
Normal file
19
externals/cryptopp-cmake/test/integration/int-find-package/CMakeLists.txt
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
# ===-----------------------------------------------------------------------===#
|
||||
# Distributed under the 3-Clause BSD License. See accompanying file LICENSE or
|
||||
# copy at https://opensource.org/licenses/BSD-3-Clause).
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# ===-----------------------------------------------------------------------===#
|
||||
|
||||
cmake_minimum_required(VERSION ${CRYPTOPP_MINIMUM_CMAKE_VERSION})
|
||||
|
||||
# Test project for cryptopp-cmake installation
|
||||
project(CryptoppCmakeFindPackageTest)
|
||||
|
||||
# Explicitly request the static library component to avoid cmake defaulting to
|
||||
# the shared component, which is currently not being built.
|
||||
find_package(cryptopp REQUIRED static)
|
||||
|
||||
# compile and link a test program using crypto++
|
||||
add_executable(rng-test ${TEST_EXAMPLE_SOURCES_DIR}/main.cpp)
|
||||
target_link_libraries(rng-test cryptopp::cryptopp)
|
||||
target_compile_features(rng-test PRIVATE cxx_constexpr)
|
||||
Reference in New Issue
Block a user