caveofprogramming / advanced-cplusplus

602 stars 344 forks source link

Add CMake Support #1

Open DeveloperPaul123 opened 7 years ago

DeveloperPaul123 commented 7 years ago

Hi,

I was wondering if you're open to the idea to re-structuring the code base to be compatible with CMake. The advantage of CMake is that it is cross platform and it will make it really easy to generate a project for a variety of platforms/IDEs (Visual Studio, Code Blocks and so on).

The changes would involve:

If so I can make a pull request.

Thanks

caveofprogramming commented 7 years ago

Hello Paul,

I actually haven't used CMake beyond taking a quick look at it now and then. But if you are willing to take the time to rearrange any of my GitHub C++ code to be compatible with CMake, that would certainly be very kind of you and very much appreciated. Do drop me a line to let me know if you do that, and I'll approve any request on GitHub. I haven't long been using GitHub or git either .... I really need to take the time to update myself properly on git. It seems a huge improvement on previous version control systems.

My experience of C++ makefiles is largely limited to old-school makefile of various kinds, which of course are often not truly cross-platform and generally unpleasant to deal with.

Regards John

Paul T mailto:notifications@github.com 17 May 2017 at 03:58

Hi,

I was wondering if you're open to the idea to re-structuring the code base to be compatible with CMake. The advantage of CMake is that it is cross platform and it will make it really easy to generate a project for a variety of platforms/IDEs (Visual Studio, Code Blocks and so on).

The changes would involve:

  • Remove spaces from folders (spaces in file paths generally don't play well on Windows).
  • Create Cmake configuration for each folder (each sub folder of the repository will be built as its own executable).

If so I can make a pull request.

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/caveofprogramming/advanced-cplusplus/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AS1i6H_Wbsx_91Sfsv03lzbAy1YK1HzEks5r6mJhgaJpZM4NdUTn.

DeveloperPaul123 commented 7 years ago

@caveofprogramming

Great! Sounds good. I'll make a pull request soon.