Trying to create a new C++ project that builds a static library, and this project links to Urho3D as an external library (similar to the setup I asked about in this topic topic1380.html but there the new project built an executable), and once again referring to the advice given here:
urho3d.github.io/documentation/H … brary.html
Seems the top level CMakeLists.txt (the one in the new project) will need to be modified from what’s given at the link above. I’m thinking (hoping) this can be accomplished by simply changing the last line from
setup_main_executable ()
to
setup_library ()
Does that sound right? I will definitely try this and post back here if it works, but I also thought I’d ask about it since I am not well-acquainted with the CMake macros (for those not familiar, these macros like setup_main_executable and setup_library are defined in Urho3D-CMake-common.cmake in CMake/Modules/).