Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
start [2022/11/15 10:53] – [About Ctor] devastart [2026/03/23 16:29] (current) deva
Line 44: Line 44:
 In the root of your project you can create your first ''ctor.cc'' build configuration file: In the root of your project you can create your first ''ctor.cc'' build configuration file:
 <code c++> <code c++>
-#include <libctor.h>+#include <ctor.h>
 namespace namespace
 { {
-BuildConfigurations myConfigs()+ctor::build_configurations myConfigs(const ctor::settings& settings)
 { {
-  return +  return { 
-    { +    ctor::build_configuration
-      +      ctor::target{"hello"},  // output filename (hello or hello.exe) 
-        .target "hello",  // output filename +      ctor::sources{ "hello.cc", "world.cc" }, // list of source files to compile 
-        .sources { "hello.cc", "world.cc" }, // list of source files to compile +      ctor::cxx_flags{"-Wall", "-Werror"}, // c++ compilation flags 
-        // See libctor.h for more options +      // See ctor.h for more options 
-      } +    }};
-    };+
 } }
 } }