Shows how to set target default namespace with cmake target_default_namespace().
#include <xtd/forms/application>
#include <xtd/forms/form>
#include <xtd/startup>
namespace other_namespace {
class program :
public form {
public:
static auto main() {
application::run(program {});
}
program() {
text("Application default namespace");
}
};
}
startup_(other_namespace::program::main);
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.h:175