Build targets and configurations. [message #1752920] |
Mon, 30 January 2017 17:13 |
|
Hello everyone,
I have been using Eclipse for a long time for relatively simple C/C++ projects, however I'm building a complex C++ application and my build configurations are started to diverge for different platforms that I target.
First, about the project:
- Makefiles are managed by Eclipse. I don't hand code them.
- My code targets two platforms. macOS and GNU/Linux.
- It can be built with both clang/llvm and g++
However, I need to pass different linker options per OS.
What I want to do is relatively easy:
- I want to be able to create different targets for different operating systems, for some building profiles (debug, test, release, etc.)
What is the best way to move forward? I can see that Eclipse has some features directly targeted for use case, but I was unable to find resources to understand it completely.
Thanks in advance.
|
|
|
|
|
|
Re: Build targets and configurations. [message #1753109 is a reply to message #1753064] |
Wed, 01 February 2017 21:22 |
|
Thanks for your answer. I'll define different build configurations for different platforms and build types.
Yes, I tried to ask about make targets in my previous post, because I'm using a test framework inside my code, and want to build the test binary for a configuration. I want to be able to call make test, rather than make all, in my Linux/Release configuration.
In my code, test binary is a different binary which is created from a different main(), becuase the library I use is working that way.
Again thanks a lot for your answers and in advance,
Hakan
|
|
|
Powered by
FUDForum. Page generated in 0.03419 seconds