Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make tests dependend on winml_dll #2509

Merged
merged 1 commit into from
Nov 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions cmake/winml_unittests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,18 @@ endfunction()

file(GLOB winml_test_common_src CONFIGURE_DEPENDS "${WINML_TEST_SRC_DIR}/common/*.cpp")
add_library(winml_test_common STATIC ${winml_test_common_src})
add_dependencies(winml_test_common onnx)
add_dependencies(winml_test_common winml_api)
add_dependencies(winml_test_common
onnx
winml_api
winml_dll
)
set_winml_target_properties(winml_test_common)

file(GLOB winml_test_api_src CONFIGURE_DEPENDS "${WINML_TEST_SRC_DIR}/api/*.cpp")
add_winml_test(
TARGET winml_test_api
SOURCES ${winml_test_api_src}
LIBS winml_test_common
DEPENDS winml_api
)
target_precompiled_header(winml_test_api testPch.h)

Expand All @@ -78,7 +80,6 @@ add_winml_test(
TARGET winml_test_scenario
SOURCES ${winml_test_scenario_src}
LIBS winml_test_common ${winml_test_scenario_libs}
DEPENDS winml_api
)
target_precompiled_header(winml_test_scenario testPch.h)
set_target_properties(winml_test_scenario PROPERTIES LINK_FLAGS
Expand Down