xtd 0.2.0
target_default_namespace.cpp

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

#include <xtd/forms/application>
#include <xtd/forms/form>
#include <xtd/startup>
using namespace xtd::forms;
namespace other_namespace {
class program : public form {
public:
static auto main() {
application::run(program {});
}
program() {
text("Application default namespace");
}
};
}
startup_(other_namespace::program::main);