[epiar-devel] CMake build system

Matthew Zweig thezweig at gmail.com
Tue Feb 16 10:35:28 PST 2010


So far I haven't been able to build epiar with cmake, but I think  
that's because I cmake is finding an older version of sdl_mixer.  I  
didn't try very hard, I'll try again tonight.

What appeals to me the most is the clean way that cmake seems to do  
packages.  I haven't built it myself but the reviews look good.

 From what I've seen cmake looks like a nice system, but I have a few  
questions.

Why do people dislike autotools?
How does cmake find libraries?  How do I choose the version of the  
library to use?
How would we specify build options?  I'm thinking about -D build flags  
for debug enabled or editer mode enabled.
How do maoserr's and troels' cmake scripts differ?

I would be interested in having cmake added to the repo as long as  
somebody writes a few lines in the BUILDING file and we don't delete  
the autotools scripts.  Maoserr you've done the most work on this  
recently, so I would like you to do the push and writeup if possible.

I realize that I've pushed back on cmake in the past so I apologize  
for the inconsistency.  I think cmake deserves a second chance.

~Matt


On Feb 16, 2010, at 8:07 AM, Christopher Thielen <chris at epiar.net>  
wrote:

> It may be time to open up this as a discussion item again. Matt does  
> an awful lot of coding lately and I believe he likes the build  
> system too.
>
> On Feb 16, 2010, at 4:39 AM, Maoserr wrote:
>
>> Hi Troels,
>> We have discussed using a cmake build system, and it is currently  
>> located
>> in a separate repository here: http://github.com/maoserr/ 
>> EpiarBuild, you
>> are free to take a look/fork if cmake is what you prefer.  We  
>> currently do
>> not officially support cmake as a build system.
>>
>> Thanks.
>>
>> On Tue, 16 Feb 2010 04:31:36 -0500, Troels Kofoed Jacobsen
>> <tkjacobsen at gmail.com> wrote:
>>
>>> Hi all
>>>
>>> As I dislike autotools and as I wanted to learn more about CMake,  
>>> I have
>>> made Epiar build with CMake.
>>>
>>> You can checkout my cmake branch from
>>> http://github.com/tkjacobsen/Epiar/tree/cmake
>>>
>>> The pros is that only one thing is hardcoded now, as opposed to  
>>> the old
>>> build system. This is the link directory, which is set to
>>> /usr/local/lib, so it works in FreeBSD. I'll figure out to get rid  
>>> of
>>> this.
>>> The libs for SDL, Freetype, ... are found automatically!
>>>
>>> Other pros include out of tree builds and imho a much cleaner build
>>> system.
>>>
>>> Right now it uses system lua but it can easily be done so if no  
>>> system
>>> lua is found, a custom is build.
>>>
>>> So, how do you try this out?
>>>
>>> Checkout the branch and do:
>>> edit CMakeLists.txt to point to the right link directory (/usr/lib  
>>> on
>>> linux)
>>> mkdir build
>>> cd build
>>> cmake ..
>>> make
>>>
>>> The binary will live in build/Source/ but you still have to  
>>> execute it
>>> from the top level directory for it to find Resources.
>>>
>>>
>>> Best regards
>>> Troels Kofoed Jacobsen
>>> _______________________________________________
>>> epiar-devel mailing list
>>> epiar-devel at epiar.net
>>> http://epiar.net/mailman/listinfo/epiar-devel
>>
>>
>> _______________________________________________
>> epiar-devel mailing list
>> epiar-devel at epiar.net
>> http://epiar.net/mailman/listinfo/epiar-devel
>
>
> _______________________________________________
> epiar-devel mailing list
> epiar-devel at epiar.net
> http://epiar.net/mailman/listinfo/epiar-devel


More information about the epiar-devel mailing list