c++ - Eclipse CDT Build Configs - Testing a DLL with CPP Unit -


I am creating a DLL (and maybe a Linux port at some later date) in C ++ using Eclipse . The situation is as follows: I am trying to create two separate build configurations that will create a DLL and that will produce the executable CppUnit test. I currently have the construction work of DLL, and I can make a separate project for testing with DLL; However, I was thinking that there was a way to do all this in a project.

Help in this case would be appreciated!

Thank you, Chris

OK, I came to know how to do this , So if someone else stops it ...

If you go to "Project-> Properties-> C / C + Build-> Settings" , then a Choose debug configuration (or create a new one). Go to the "Create Artificial" tab and change "Artifact Type" to Executable

to avoid it now All your source code is compiled into all build configurations (such as your main) in the DLL, which is not understood much), "Project-> Properties-> C / C ++ Normal -> Path and Symbol " Choose your Build Configuration and go to " Source Location " tab Here you can add new source folders They are / can delete existing source folder already exists.


Comments