Tutorial by Examples

It is very easy to build a simple C++ project. Here is an example of a SConstruct file that does so: env=Environment() env.Program('hello', Glob('src/*.cpp')) This creates the executable hello composed of all the sources in src with extension cpp.
This example shows more detailed build settings: env=Environment( CPPPATH='/usr/include/boost/', CPPDEFINES=['foo'], LIBS=['bar'], SCONS_CXX_STANDARD='c++11') env.Program('hello', Glob('src/*.cpp')) This builds the executable hello from all the cpp files in src, with the f...

Page 1 of 1