Jump to content
  • Advertisement
Sign in to follow this  
Wipe

cmake "game" target

This topic is 994 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Attached a tiny suggestion to change building samples/game/ optional [off by default] and rename it to "angelscript-game"; don't think AS should steal such a perfect name smile.png

Share this post


Link to post
Share on other sites
Advertisement

What impact does the name of the sample have? There is only one sample with the name 'game' so why do you think it is necessary to change the name?

Share this post


Link to post
Share on other sites
It's a small detail really, but "game" should be available for top-level CMakeLists if AS is added there via add_subdirectory().

Speaking of using AngelScript as subproject, can you recommend any git mirror which is frequently updated and have zero modifications? I keep finding ones which sooner or later are abandoned or start changing stuff.

Share this post


Link to post
Share on other sites

What do you mean by top-level CMakeLists?

 

I'm afraid I don't quite understand cmake, as I don't use this myself. The current cmake file was provided by someone from the community. 

 

I guess the problem isn't really the name of the 'game' sample, but the fact that the CMakeLists.txt for the library is including it as a sub_directory. I guess this is not really the correct way to do it. Would it be enough to simply remove the last line in the angelscript/projects/cmake/CMakeLists.txt?

 

 

I don't keep track of git mirrors. The only official repository for AngelScript that exist is the svn repository that is hosted on SourceForge.net at http://svn.code.sf.net/p/angelscript/code

Share this post


Link to post
Share on other sites

Would it be enough to simply remove the last line in the angelscript/projects/cmake/CMakeLists.txt?

Yeah, plus a small tweak; with config like below game will be built only when user wants to, and totally ignored if all he wants is a library.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!