mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-11 17:48:34 +00:00
Make tests dependend on winml_dll (#2509)
This commit is contained in:
parent
ecb3228e43
commit
092d8f2866
1 changed files with 5 additions and 4 deletions
|
|
@ -55,8 +55,11 @@ 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")
|
||||
|
|
@ -64,7 +67,6 @@ 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)
|
||||
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue