Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Switching to CMake  (Read 11138 times)

0 Members and 2 Guests are viewing this topic.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Switching to CMake
« on: June 04, 2010, 09:19:34 pm »
Hi

I'd like to know your opinion about using CMake as the build system for SFML. I've hesitated for a long time, but it would really make things much easier for me.

Here is a list of cool things about CMake:
- I can make a new release (compiling + packaging for all compilers) in one click, thus I'd be able to release more versions, more often
- No more unsupported compilers/IDEs (like VC++ 2010, MinGW makefiles, Eclipse project files, Borland workspaces, ..)
- No more troubles with the supported compilers/IDEs
- Users can customize their own build options (compile only some modules, disable samples, ...)
- Dependencies auto-detected, and you get a clear error message at configure-time if one of them is missing

The main drawback, of course, is that all the users that regularly compile SFML from sources will have to install CMake and use it :)
For those compiling with an IDE, the generated projects are not very "attractive" and look very messy, but in my opinion when you build with CMake you don't need to use the IDE anymore.

So what do you think ?
Laurent Gomila - SFML developer

TheBoff

  • Newbie
  • *
  • Posts: 10
    • View Profile
Switching to CMake
« Reply #1 on: June 04, 2010, 09:32:41 pm »
If it will make it easier to compiler in VC++ 2010, by all means go for it :D

I can't imagine that it's that much effort to install + use cmake: it even seems to have a gui on windows!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Switching to CMake
« Reply #2 on: June 04, 2010, 09:38:59 pm »
Quote
I can't imagine that it's that much effort to install + use cmake: it even seems to have a gui on windows!

Yes it does.

Plus, you only need to go through the configuration step once: if the config changes, CMake will automatically be invoked to update the build files the next time you compile.
Laurent Gomila - SFML developer

pdusen

  • Newbie
  • *
  • Posts: 30
    • View Profile
Switching to CMake
« Reply #3 on: June 04, 2010, 10:06:59 pm »
I've been using CMake for my projects for over a year now, and I heartily recommend it. It is by far the least painful, most cross-platform build system I've ever used.

If you're switching to CMake, does that mean you're going to provide a FindSFML.cmake module for people developing SFML-based projects with CMake to use?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Switching to CMake
« Reply #4 on: June 04, 2010, 10:08:46 pm »
Quote
If you're switching to CMake, does that mean you're going to provide a FindSFML.cmake module for people developing SFML-based projects with CMake to use?

It already exists ;)
http://www.sfml-dev.org/forum/viewtopic.php?p=15753#15753
Laurent Gomila - SFML developer

pdusen

  • Newbie
  • *
  • Posts: 30
    • View Profile
Switching to CMake
« Reply #5 on: June 04, 2010, 10:11:16 pm »
Quote from: "Laurent"
Quote
If you're switching to CMake, does that mean you're going to provide a FindSFML.cmake module for people developing SFML-based projects with CMake to use?

It already exists ;)
http://www.sfml-dev.org/forum/viewtopic.php?p=15753#15753


Ah, that it does. I'm actually using that one now, I just didn't know if you had plans to create an "official" one. I suppose there isn't much need, though.

JannoT

  • Guest
Switching to CMake
« Reply #6 on: June 04, 2010, 10:46:13 pm »
Go with cmake, especially if it would make life easier for you. 8)  I too use cmake for personal projects. cmake is most sane build system there is.

christoph

  • Full Member
  • ***
  • Posts: 102
    • View Profile
    • http://www.christoph-egger.org
Switching to CMake
« Reply #7 on: June 05, 2010, 12:46:21 am »
CMake gives me a more common interface (apart from make ; make install sfml is -- well a bit custom) ;)

Spodi

  • Full Member
  • ***
  • Posts: 150
    • View Profile
    • http://www.netgore.com/
Switching to CMake
« Reply #8 on: June 05, 2010, 02:18:58 am »
If its easier for you, I say go for it! I know what its like to work in a development environment you're not too happy with. Makes you just not want to write anything.

nulloid

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Switching to CMake
« Reply #9 on: June 05, 2010, 08:54:17 am »
+1 vote for cmake :) It sounds far too great to miss it :D

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Switching to CMake
« Reply #10 on: June 24, 2010, 01:22:56 am »
*sign*

Gio

  • Newbie
  • *
  • Posts: 16
    • View Profile
Switching to CMake
« Reply #11 on: June 24, 2010, 02:21:38 am »
Hi,

I have sadly seen many libraries for game development that were not updated for Visual C++ 2010 and that the automatic converter did not work on. However, with CMake, I have been able to update these older libraries for my compiler with no problems at all!
SFML, unfortunately, has the inability to work with Visual C++ 2010 Properly even though the converter does work on it.  I genuinely believe CMake support could fix this problem. I hope to see it in the next edition of SFML.
~~Gio~~

Svenstaro

  • Full Member
  • ***
  • Posts: 222
    • View Profile
Switching to CMake
« Reply #12 on: June 24, 2010, 03:30:13 pm »
Oh dear yes, please switch to CMake! I wondered why you still bothered with all those manual project files. I offer my help in setting up the project with CMake if you get stuck.

Svenstaro

  • Full Member
  • ***
  • Posts: 222
    • View Profile
Switching to CMake
« Reply #13 on: July 03, 2010, 04:16:02 pm »
Any progress on this? SVN doesn't appear to have any changes related to this.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Switching to CMake
« Reply #14 on: July 03, 2010, 04:40:10 pm »
Quote
Any progress on this?

Yes, I'm still working on it.

Quote
SVN doesn't appear to have any changes related to this.

It won't until it is completely done ;)
Laurent Gomila - SFML developer