New project

I changed to VS2010 and deleted old solution and project files, created cmake file as explained here urho3d.github.io/documentation/H … brary.html
then wrote cmake . and got new project file which I added to urho3d solution.
It didnt compile, I had to add C:\CPP\Urho3D\Engine to ‘Additional Include Directories’,
otherwise it complains about missing Urho3D.h . Then my project compiled again.
Just for info.

When we’re talking of solutions & projects created by CMake, transporting projects between solutions may not work well.

Rather, use Urho’s solution only for building Urho, and your own project’s solution for building your own project. Using CMake, you should treat solution/project files as essentially disposable while the authoritative project setup is all contained in your CMakeLists.txt.

(I just used urho’s solution because of the samples so they are ‘near’)

Ok, I removed all again and created new project and solution, then opened my project’s solution, it still complains about Urho3D.h

Normally the Urho3D.h file should reside in URHO_HOME/Build/Engine after Urho3D has been built successfully. The CMake module FindUrho3D adds this directory as an include directory to the project. Do you have the file in that location? If you’ve configured Urho’s CMake build differently (eg. not using the provided batch files, which use “Build” as the build output directory) then this assumption may not be true.

Aha, that explains it.
I used cmake-gui and Urho3D.sln and project files was in Urho3D/ dir. I now configured cmake-gui to use Build/ dir and now everything works,
thanks.

When you use cmake-gui then you are advised to follow the instructions given in this section urho3d.github.io/documentation/H … _CMake_GUI. Or otherwise CMake would mistakenly generate a non out-of-source build tree, which is not supported by our build script anymore.

Totally missed that, should read docs more carefully.