Sharpmake icon indicating copy to clipboard operation
Sharpmake copied to clipboard

Can I use Sharpmake and include Cmake projects?

Open AgrYpn1a opened this issue 3 years ago • 4 comments

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?

AgrYpn1a avatar Aug 05 '21 23:08 AgrYpn1a

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.

belkiss avatar Aug 06 '21 12:08 belkiss

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?

AgrYpn1a avatar Aug 10 '21 08:08 AgrYpn1a

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?

AgrYpn1a avatar Aug 10 '21 14:08 AgrYpn1a

As long as you don't intend to modify Ogre3D that might work.

jspelletier avatar Aug 10 '21 15:08 jspelletier