0

I've managed to generate solution files for a C# WPF solution using this answer to the Generate C# project using CMake question.

But as soon as I created my own file, I noticed that the generated namespace was blank, so I went to properties of the project and confirmed that the default namespace is blank: enter image description here

I'd like to set default namespace to the name of the project, how do I do it?

I checked out the documentation for CSharpUtilities, and googled it, and the only thing that I found related to the problem is this: VS_GLOBAL_ROOTNAMESPACE. But I don't know what to do with it. Is it a function? Is it a variable? Where do I put it then?

KulaGGin
  • 943
  • 2
  • 12
  • 27

1 Answers1

0

What I needed to do is to set a property for my target project:

set_target_properties(Example
    PROPERTIES
    VS_GLOBAL_ROOTNAMESPACE Example
)
KulaGGin
  • 943
  • 2
  • 12
  • 27