On Thu, Dec 15, 2011 at 8:20 PM, klaas.holwerda <n...@klaasholwerda.nl> wrote:
>> Ehh, I've invested too much time in CMake already.
> I made a sort of packages system, with their own install and find routines 
> (wxdocview wxart2d).
> So if you decided to jump to Cmake in wxLua, maybe it might help to look into 
> that. Of course i will
> help where possible when it comes to Cmake.

I see what you have, I took a different route that works well. I have
a number of projects in wxCode and I use CMake to connect all of them
together. If you look at the file below you'll see that I include two
CMake files in the build directory that are run-once. I use a very
simple CMakeLists.txt file to combine all the wxCode and wxLua
projects together so they can be build together and easily share their
settings. This way, everything shows up in the same Visual Studio or
Code::Blocks project.

http://wxlua.svn.sourceforge.net/viewvc/wxlua/trunk/wxLua/CMakeLists.txt?revision=28&view=markup

> A problem i found not so easy to solve is building several packages in a row.
> E.g. wxart2d depends on wxdocview and several others, which depend on wxLua 
> and /or wxWidgets.
> One first needs to first build wxdocview, before wxart2d can be build.
> And using VC project files, this becomes complicated for users.

Try to simply call ADD_SUBDIRECTORY( path/to/wxLua) from one of your
CMakeLists.txt files and that should be all you need to get wxLua to
show up in your projects to be build with the exact same settings.

> Anyway the best news is that wxLua works for 2.9 wx now  :-)

Yes, it was actually very easy. I had expected that I would have had
to change most everything.

Regards,
    John

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to