I donβt know if any modern versions of visual studio provide this feature, but you can use Premake to create your project
Grab it here
Create a file called premake4.lua containing the following lines
solution "MyApplication" configurations { "Debug", "Release" } -- A project defines one build target project "MyApplication" kind "ConsoleApp" language "C++" files { "**.h", "**.cpp" } configuration "Debug" defines { "DEBUG" } flags { "Symbols" } configuration "Release" defines { "NDEBUG" } flags { "Optimize" }
Copy premake4.lua inside the source directory, say c: \ lesson1
Then run the following command line inside the same directory
c:\lesson1> premake4 vs2008
It will generate a solution and a project containing all the .cpp, .h files in the c: \ lesson1 directory
Hope this helps, feel free to ask me more.
source share