RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
1.01k stars 178 forks source link

:wrench: Switch conan generator to CMakeToolchain #3017

Closed AnotherFoxGuy closed 1 year ago

AnotherFoxGuy commented 1 year ago

Replaced the overcomplicated cmake script with the new CMakeToolchain This should make it a lot easier to build with ror-dependencies

How to build on windows with conan Add the remote conan remote add ror-conan https://git.anotherfoxguy.com/api/packages/rorbot/conan -f Install the deps with conan conan install . -b missing -pr:b=tools/conan-profiles/vs-19-release -pr=tools/conan-profiles/vs-19-release -of build conan install . -b missing -pr:b=tools/conan-profiles/vs-19-debug -pr=tools/conan-profiles/vs-19-debug -of build Generate the VS project files cmake --preset conan-default

How to build on windows with ror-dependencies Build ror-dependencies Copy the Dependencies_Windows_Visual-Studio-* folder to <project-root>/dependencies Generate the VS project files cmake .. Build RoR Copy all the .dll files from <project-root>/dependencies/bin/ to <build-folder>/bin

ohlidalp commented 1 year ago

Trying with conan 2.0.2.

ohlidalp commented 1 year ago

Caelum now works perfectly under Debug, Release still crashes on OIS startup. When I change conanfile to self.requires("ois/1.5.1@anotherfoxguy/stable"), both work OK.

I still need to test with ror-dependencies.