mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 04:38:59 +08:00
5b6b66512b
* update to 2.8.84 * [libu2f-server] Initial Port of Version 1.1.0 * Missing exported functions * Add support for static linkage * Added missing 'arm64' Target, and corrected case for 'arm' for vcpkg_install_msbuild * Add support for arm64 * Support for arm target * [libu2f-server] add cmakelists and patch * string copy fix * revert msbuild changes * add compile definitions * add patch file * remove line * change version
30 lines
1005 B
CMake
30 lines
1005 B
CMake
cmake_minimum_required(VERSION 3.5)
|
|
|
|
project(libu2f-server C)
|
|
|
|
file(GLOB_RECURSE LIBU2F_SERVER_HEADERS u2f-server/*.h)
|
|
file(GLOB_RECURSE LIBU2F_SERVER_SOURCE u2f-server/*.c)
|
|
|
|
add_library(libu2f-server ${LIBU2F_SERVER_SOURCE})
|
|
|
|
target_include_directories(libu2f-server PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> $<INSTALL_INTERFACE:include>)
|
|
target_compile_definitions(libu2f-server PRIVATE _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_DEPRECATE)
|
|
|
|
find_package(json-c CONFIG REQUIRED)
|
|
find_package(OpenSSL REQUIRED)
|
|
target_link_libraries(libu2f-server PRIVATE OpenSSL::SSL OpenSSL::Crypto json-c::json-c)
|
|
|
|
install(TARGETS libu2f-server
|
|
EXPORT libu2f-serverConfig
|
|
RUNTIME DESTINATION "bin"
|
|
ARCHIVE DESTINATION "lib"
|
|
LIBRARY DESTINATION "lib"
|
|
)
|
|
|
|
INSTALL(FILES ${LIBU2F_SERVER_HEADERS} DESTINATION "include/libu2f-server")
|
|
|
|
install(EXPORT libu2f-serverConfig
|
|
FILE libu2f-serverConfig.cmake
|
|
NAMESPACE libu2f-server::
|
|
DESTINATION "share/libu2f-server"
|
|
) |