开发者

Post-build step in Eclipse CDT

开发者 https://www.devze.com 2022-12-21 03:27 出处:网络
Eclipse SDK 3.5.1, CDT. I have the following workspace tree: Bin (just d开发者_StackOverflow社区irectory)

Eclipse SDK 3.5.1, CDT. I have the following workspace tree:

Bin (just d开发者_StackOverflow社区irectory)
--Debug
--Release
Client (project)
--Debug
--Release

In the Client project, Debug configuration, I fill Post-Build step:

cp Debug/Client ../Bin/Debug/

I want to copy output executable to Bin/Debug directory. Building the project, I have this error message: make[1]:[post-bulld] Error 1 (ignored) line 0

What is wrong? Also, can I use some variables, like Workspace directory, current configuration etc. in Post-Build step? Where can I find these variables and how to use them? Thank you.


Found solution: current directory is Debug, and not project directory, the command should be:

cp Client ../../Bin/Debug/
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号