xtd 0.2.0
Loading...
Searching...
No Matches
target_default_namespace.cpp

Shows how to set target default namespace with cmake target_default_namespace().

#include <xtd/xtd>
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.hpp:168