Thank you for your reply.
Well, I’ll try to be as specific as I can.
I’ve created a folder with the following structure:
urho-test/
├ bin/
│ ├ Data/
│ └ CoreData/
├ CMake/
│ ├ Modules/
│ └ Toolchains/
├ CMakeLists.txt
├ HelloWorld.cpp
├ HelloWorld.h
├ Sample.h
└ Sample.inl
where all of the sources were taken from samples of Urho3D.
My CMakeLists.txt is identical to the one from here:
I’ve only specified the location of Urho3D with the folowing command:
set(URHO3D_HOME "c:/Urho3d/")
Then I’ve opened this folder with Visual Studio 2017 (since it now supports CMake) and got the following output from the CMake:
1> Command line: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2017\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe -G "Visual Studio 15 2017" -DCMAKE_INSTALL_PREFIX:PATH="C:\Users\Ales\AppData\Local\CMakeBuild\b127fd59-b858-303f-8a0e-0b36e52b0dd1\build\install" -DCMAKE_CONFIGURATION_TYPES="Debug" "D:\dev\urho-test"
1> Working directory: C:\Users\Ales\AppData\Local\CMakeBuild\b127fd59-b858-303f-8a0e-0b36e52b0dd1\build\x86-Debug
1> -- Found Urho3D: C:/Urho3d/lib/Urho3D_d.lib (found version "Unversioned")
1> -- Looking for C++ include d3dcompiler.h
1> -- Looking for C++ include d3dcompiler.h - found
1> -- Looking for C++ include d3d9.h
1> -- Looking for C++ include d3d9.h - found
1> -- Looking for C++ include d3d11.h
1> -- Looking for C++ include d3d11.h - found
1> -- Looking for C++ include ddraw.h
1> -- Looking for C++ include ddraw.h - found
1> -- Looking for C++ include dsound.h
1> -- Looking for C++ include dsound.h - found
1> -- Looking for C++ include dinput.h
1> -- Looking for C++ include dinput.h - found
1> -- Looking for C++ include dxgi.h
1> -- Looking for C++ include dxgi.h - found
1> -- Looking for C++ include xaudio2.h
1> -- Looking for C++ include xaudio2.h - found
1> -- Looking for include files windows.h, xinput.h
1> -- Looking for include files windows.h, xinput.h - found
1> -- Found DirectX: TRUE found components: DInput DSound XAudio2 XInput
1> Error copying file (if different) from "D:/dev/urho-test/bin/Autoload" to "C:/Users/Ales/AppData/Local/CMakeBuild/b127fd59-b858-303f-8a0e-0b36e52b0dd1/build/x86-Debug/bin/Autoload".
1> -- Configuring done
1> -- Generating done
1> -- Build files have been written to: C:/Users/Ales/AppData/Local/CMakeBuild/b127fd59-b858-303f-8a0e-0b36e52b0dd1/build/x86-Debug
1> Starting CMake target info extraction ...
1> CMake server connection made.
So it sucessfully generates solution somewhere inside of AppData, and when I build and execute it, black window without any text appears, despite of the fact that GetResource function returns some valid pointer.
Also when I try to change working directory for CMake in CMakeSettigns.json, I get the following error:
CMake Error at CMake/Modules/FindUrho3D.cmake:352 (message):
1> Could NOT find compatible Urho3D library in Urho3D SDK installation or
1> build tree. Use URHO3D_HOME environment variable or build option to
1> specify the location of the non-default SDK installation or build tree.
1> Ensure the specified location contains the Urho3D library of the requested
1> library type.