Can I use FindDirectX.cmake file for another project?

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
GrafZahl
Gnoblar
Posts: 10
Joined: Wed Sep 02, 2015 5:12 pm

Can I use FindDirectX.cmake file for another project?

Post by GrafZahl »

Hello

I'm currently setting up a CMake build system for the Irrlicht graphic engine, because I like the Ogre3D build system very much.
Here I also need to find the include path and libraries for DirectX9. So I used the Ogre files FindDirectX.cmake and FindPkgMacros.cmake to archive this. It works pretty fine on my local drive.

However I want to make this build system available for the Irrlicht project, so that other people can also use it, if they want. That's why I want to ask, if I can release these two files from the Ogre3D build system with my new Irrlicht related CMake files?
The header of both files say:
#-------------------------------------------------------------------
# This file is part of the CMake build system for OGRE
# (Object-oriented Graphics Rendering Engine)
# For the latest info, see http://www.ogre3d.org/
#
# The contents of this file are placed in the public domain. Feel
# free to make use of it in any way you like.
#-------------------------------------------------------------------
And this sound like: Yes, I can use it for Irrlicht and release it in the Irrlicht Forum. However to be really sure, I want to ask the developers of Ogre, if this is ok for them.

Of course I will post a link to Ogre3D webpage in my release Post and I will highlight the usage of these two files from Ogre (I also won't change the content of these files, so the header stays the same anyway).

Best regards,
GrafZahl
GrafZahl
Gnoblar
Posts: 10
Joined: Wed Sep 02, 2015 5:12 pm

Re: Can I use FindDirectX.cmake file for another project?

Post by GrafZahl »

Is there any developer active in this Forum to give me an answer?
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 100

Re: Can I use FindDirectX.cmake file for another project?

Post by Wolfmanfx »

Hi,

Yes you can use the scripts (like its stated in the CMake) but leave the comments (as you already stated).

You are welcome.

best regards Murat
GrafZahl
Gnoblar
Posts: 10
Joined: Wed Sep 02, 2015 5:12 pm

Re: Can I use FindDirectX.cmake file for another project?

Post by GrafZahl »

Thank you very much :)