The-Forge icon indicating copy to clipboard operation
The-Forge copied to clipboard

CMake support?

Open kangsheng89 opened this issue 3 years ago • 11 comments

is there any plan for offcial cmake support for the-forge?

https://github.com/DeanoC/The-Forge/blob/master/CMakeLists.txt

kangsheng89 avatar Apr 15 '21 03:04 kangsheng89

I am currently trying to put together support for cmake with https://github.com/cboiangiu/The-Forge.cmake. I am using https://github.com/widberg/bgfx.cmake as a guide. Ideally I wish to build The-Forge as a package and then include the lib as a framework. Also working on https://github.com/cboiangiu/the-forge-starter to implement the lib with cmake support and draw a simple cube, while keeping the useful interfaces such as IApp (like they are used in the Unit Tests). The starter is based on https://github.com/pr0g/sdl-bgfx-imgui-starter.

cboiangiu avatar Apr 15 '21 12:04 cboiangiu

Yes i totally agree with package it as lib. with cmake move, we also can consider using conan/vcpkg. By doing so, it will make the opensource community to adopt this framework

kangsheng89 avatar Apr 16 '21 01:04 kangsheng89

I am currently trying to put together support for cmake with https://github.com/cboiangiu/The-Forge.cmake. I am using https://github.com/widberg/bgfx.cmake as a guide. Ideally I wish to build The-Forge as a package and then include the lib as a framework. Also working on https://github.com/cboiangiu/the-forge-starter to implement the lib with cmake support and draw a simple cube, while keeping the useful interfaces such as IApp (like they are used in the Unit Tests). The starter is based on https://github.com/pr0g/sdl-bgfx-imgui-starter.

this would also allow it to "just be used" with other IDE's that have support for cmake (or even simply via cmake itself like make project (fictional makefile target) which would call cmake)

mgood7123 avatar Jun 28 '21 05:06 mgood7123

https://github.com/CU-Production/The-Forge-CMake You can build The-Forge first, and then use it as a library.

THISISAGOODNAME avatar Nov 09 '21 13:11 THISISAGOODNAME

https://github.com/Geenz/TheForgeTheCmake This is my attempt at it. It's fairly incomplete - but stuff like dynamic linking is there. I'm working on adding unit tests and the like.

Geenz avatar Feb 24 '22 08:02 Geenz

I have a working version for the newest update of The-Forge! https://github.com/JonahGoldsmith/The-Forge-CMake This Works on Windows Only but will work on MACOS and IOS in the next few days! The Test Project Shows how to copy DLL's and Run the Shader Compiler just like the VS Projects Do!

JonahGoldsmith avatar Nov 26 '22 13:11 JonahGoldsmith

I've made:

TheForgeCMake reflect's the UbuntuCodeLite/*.project files.

jochumdev avatar Jan 28 '23 19:01 jochumdev

I agree (subscribe).

I started reverse engineering Hades (for private use) a few days ago and started to work on adding CMake to make toggling support for different platforms easier.

I'll post a link with additions to The Forge.

In meantime, it would help if any of the current contributors could share whether there's any modifications that have been done to thirdparty libraries. I'll likely just use FetchContent for now, but it might be necessary to apply patches if there's changes.

Most other things should work as is, I'll probably just change imports so they're relative to modules as each target provides its own include paths.

Caellian avatar May 12 '24 13:05 Caellian