|
58 | 58 | mkdir $(Build.BinariesDirectory)\${{parameters.artifactName}} |
59 | 59 | mkdir $(Build.BinariesDirectory)\${{parameters.artifactName}}\lib |
60 | 60 | mkdir $(Build.BinariesDirectory)\${{parameters.artifactName}}\include |
| 61 | + mkdir $(Build.BinariesDirectory)\${{parameters.artifactName}}\lib\cmake |
| 62 | + mkdir $(Build.BinariesDirectory)\${{parameters.artifactName}}\lib\cmake\onnxruntime |
61 | 63 |
|
62 | 64 | if exist $(Build.BinariesDirectory)\${{parameters.buildConfig}}\${{parameters.buildConfig}}\onnxruntime_providers_cuda.dll ( |
63 | 65 | echo "cuda context headers copied" |
@@ -116,6 +118,26 @@ steps: |
116 | 118 | copy $(Build.SourcesDirectory)\VERSION_NUMBER $(Build.BinariesDirectory)\${{parameters.artifactName}}\VERSION_NUMBER |
117 | 119 | @echo ${{parameters.commitId}} > $(Build.BinariesDirectory)\${{parameters.artifactName}}\GIT_COMMIT_ID |
118 | 120 |
|
| 121 | + REM Copy CMake package files |
| 122 | +
|
| 123 | + copy $(Build.BinariesDirectory)\${{parameters.buildConfig}}\onnxruntimeConfig.cmake ^ |
| 124 | + $(Build.BinariesDirectory)\${{parameters.artifactName}}\lib\cmake\onnxruntime |
| 125 | +
|
| 126 | + copy $(Build.BinariesDirectory)\${{parameters.buildConfig}}\onnxruntimeConfigVersion.cmake ^ |
| 127 | + $(Build.BinariesDirectory)\${{parameters.artifactName}}\lib\cmake\onnxruntime |
| 128 | +
|
| 129 | + for /d %%D in ($(Build.BinariesDirectory)\${{parameters.buildConfig}}\CMakeFiles\Export\*) do ( |
| 130 | + if exist "%%D\onnxruntimeTargets.cmake" ( |
| 131 | + copy "%%D\onnxruntimeTargets.cmake" ^ |
| 132 | + "$(Build.BinariesDirectory)\${{parameters.artifactName}}\lib\cmake\onnxruntime" |
| 133 | + ) |
| 134 | +
|
| 135 | + if exist "%%D\onnxruntimeTargets-release.cmake" ( |
| 136 | + copy "%%D\onnxruntimeTargets-release.cmake" ^ |
| 137 | + "$(Build.BinariesDirectory)\${{parameters.artifactName}}\lib\cmake\onnxruntime" |
| 138 | + ) |
| 139 | + ) |
| 140 | +
|
119 | 141 | workingDirectory: '$(Build.BinariesDirectory)\${{parameters.buildConfig}}' |
120 | 142 |
|
121 | 143 | - ${{ if eq(parameters.DoEsrp, true) }}: |
|
0 commit comments