Sharpmake
Sharpmake copied to clipboard
Can I use Sharpmake and include Cmake projects?
Hey!
I would like to use Sharpmake as a main build system for my project that relies on external code (Ogre3D to be precise) that is built using CMake. Is there a way to tell Sharpmake to take over the CMake part so that I am able to build my own project with Sharpmake and also build the dependencies that are built using CMake?
Heya! That's not feasible with sharpmake, and I'm not sure if that's something we would want. How would you envision that to work?
Note that you can always write a sharpmake file that maps the other project include/lib paths and outputs so you add a dependency to it from your sharpmake files.
Hey, thanks for the answer. I have no idea about CMake, and there are a lot of specific config files and stuff, so I imagine it will not be an easy task converting it to Sharpmake.. but I haven't tried yet, so I cannot tell... Basically, you suggest that would be the way to go?
And btw, I've found this example: https://github.com/ubisoft/Sharpmake/tree/dev/samples/vcpkg and I just saw that you can also install Ogre3D using vcpkg.. so I am thinking, instead of rewriting the whole build system, I might be able to use this?
As long as you don't intend to modify Ogre3D that might work.