From 7e0f899fe98096cd2bcc72b22f614da33311cf68 Mon Sep 17 00:00:00 2001 From: Changhua Date: Sun, 16 Oct 2022 09:11:50 +0800 Subject: [PATCH] Add post-build events --- cpp/cpp.vcxproj | 6 ++++++ sdk/SDK.vcxproj | 9 ++++++--- spy/Spy.vcxproj | 6 +++++- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/cpp/cpp.vcxproj b/cpp/cpp.vcxproj index 9918aa3..06cfcf6 100644 --- a/cpp/cpp.vcxproj +++ b/cpp/cpp.vcxproj @@ -118,6 +118,12 @@ true $(OutDir)sdk.lib;iphlpapi.lib;wsock32.lib;ws2_32.lib;crypt32.lib;%(AdditionalDependencies) + + xcopy /y $(OutDir)cpp.exe $(OutDir)out\cpp + + + Copy files + diff --git a/sdk/SDK.vcxproj b/sdk/SDK.vcxproj index b3e0d3d..a5e7bb9 100644 --- a/sdk/SDK.vcxproj +++ b/sdk/SDK.vcxproj @@ -126,9 +126,12 @@ sdk.def - xcopy /y $(OutDir)sdk.dll $(SolutionDir)python -xcopy /y $(SolutionDir)TEQuant.jpeg $(SolutionDir)python -xcopy /y $(SolutionDir)TEQuant.jpeg $(SolutionDir)Release + xcopy /y $(OutDir)sdk.dll $(OutDir)out\cpp +xcopy /y $(OutDir)sdk.dll $(OutDir)out\python\wcf +xcopy /y $(SolutionDir)TEQuant.jpeg $(OutDir)out\cpp +xcopy /y $(SolutionDir)TEQuant.jpeg $(OutDir)out\python +xcopy /y $(SolutionDir)python\demo.py $(OutDir)out\python +xcopy /y $(SolutionDir)python\wcf\*.py $(OutDir)out\python\wcf Copy files diff --git a/spy/Spy.vcxproj b/spy/Spy.vcxproj index 98c0d6c..a449bc9 100644 --- a/spy/Spy.vcxproj +++ b/spy/Spy.vcxproj @@ -131,7 +131,11 @@ spy.def - xcopy /y $(OutDir)spy.dll $(SolutionDir)python + cd $(OutDir) +md out\cpp +md out\python\wcf +xcopy /y $(OutDir)spy.dll $(OutDir)out\cpp +xcopy /y $(OutDir)spy.dll $(OutDir)out\python\wcf Copy spy.dll