Choose which source file will be compiled, linked, etc in VS 2010
-
Hi ¿Is it posible to configure a VS2010 C++ WinApi32 project to select which c/cpp file generates some obj file, and configure which obj file are linked to generate the exe file? Basically what I need is the same features that an old nmake project with a make file do. For example, I have 3 source files myAppVer1.c, myAppVer2.c and MyAppVer3.c. I want to configure VS to create myApp.obj from myAppVer2.c, then link this obj file with some other obj files (if any) to create MyApp.exe I have done some research and VS has the NMake project feature, but its an empty project and I would have to do all the commands, setting vars and the makefile from scratch. If this is the only way, is there some wizard/tool/whatever that makes in a NMake project the directory structure/makefile/etc with the common/basic settings for an WinApi32 app? Hope I made myself clear and excuse my English for any mistake :) Regards.
-
Hi ¿Is it posible to configure a VS2010 C++ WinApi32 project to select which c/cpp file generates some obj file, and configure which obj file are linked to generate the exe file? Basically what I need is the same features that an old nmake project with a make file do. For example, I have 3 source files myAppVer1.c, myAppVer2.c and MyAppVer3.c. I want to configure VS to create myApp.obj from myAppVer2.c, then link this obj file with some other obj files (if any) to create MyApp.exe I have done some research and VS has the NMake project feature, but its an empty project and I would have to do all the commands, setting vars and the makefile from scratch. If this is the only way, is there some wizard/tool/whatever that makes in a NMake project the directory structure/makefile/etc with the common/basic settings for an WinApi32 app? Hope I made myself clear and excuse my English for any mistake :) Regards.
You can modify your project such that myAppVer1.c and myAppVer3.c are excluded from the build, and the output file is called myApp.obj. Use the mouse right-click on the project and select Properties to see what can be changed. Alternatively you can create multiple projects within a solution that include only specific source files from a common directory, again using the Properties.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman