-
Notifications
You must be signed in to change notification settings - Fork 545
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
27 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,32 @@ | ||
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
|
||
cmake_minimum_required(VERSION 3.16) | ||
|
||
project(msquic_platform_external) | ||
|
||
find_package(msquic REQUIRED) | ||
find_package(GTest REQUIRED) | ||
FIND_LIBRARY(MSPLATFORM_LIBRARIES | ||
find_library(MSPLATFORM_LIBRARIES | ||
NAMES msquic_platform) | ||
find_library(GTEST_LIBRARIES | ||
NAMES gtest | ||
PATHS ${CMAKE_INSTALL_PREFIX}/lib | ||
) | ||
message(STATUS "CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX}") | ||
message(STATUS "MSPLATFORM_LIBRARIES: ${MSPLATFORM_LIBRARIES}") | ||
message(STATUS "GTEST_LIBRARIES: ${GTEST_LIBRARIES}") | ||
|
||
set(SOURCES | ||
../main.cpp | ||
../CryptTest.cpp | ||
../DataPathTest.cpp | ||
../PlatformTest.cpp | ||
# ../CryptTest.cpp | ||
# ../DataPathTest.cpp | ||
# ../PlatformTest.cpp | ||
# ../StorageTest.cpp | ||
../TlsTest.cpp | ||
) | ||
|
||
add_executable(msquicplatformtest ${SOURCES}) | ||
|
||
# target_include_directories(msquicplatformtest PRIVATE ${PROJECT_SOURCE_DIR}/src/core) | ||
|
||
# set_property(TARGET msquicplatformtest PROPERTY FOLDER "${QUIC_FOLDER_PREFIX}tests") | ||
# set_property(TARGET msquicplatformtest APPEND PROPERTY BUILD_RPATH "$ORIGIN") | ||
|
||
target_link_libraries(msquicplatformtest msquic ${MSPLATFORM_LIBRARIES} ncrypt crypt32 GTest::GTest) | ||
|
||
# if (BUILD_SHARED_LIBS) | ||
# target_link_libraries(msquicplatformtest ${MSPLATFORM_LIBRARIES} ncrypt crypt32) | ||
# endif() | ||
|
||
# target_link_libraries(msquicplatformtest inc gtest warnings logging base_link) | ||
|
||
# add_test(NAME msquicplatformtest | ||
# COMMAND msquicplatformtest | ||
# WORKING_DIRECTORY ${QUIC_OUTPUT_DIR}) | ||
target_include_directories(msquicplatformtest PRIVATE ${CMAKE_INSTALL_PREFIX}/include) | ||
target_link_libraries(msquicplatformtest msquic ${MSPLATFORM_LIBRARIES} ${GTEST_LIBRARIES} ws2_32 schannel ntdll bcrypt ncrypt crypt32 iphlpapi advapi32 winmm secur32 clang_rt.asan_dbg_dynamic-x86_64 clang_rt.asan_dynamic-x86_64) | ||
target_compile_definitions(msquicplatformtest PRIVATE QUIC_EVENTS_STUB QUIC_LOGS_STUB) |