John,

It is more complicated then i thought it would be.
My users need to use the libraries of wxart2d + wxlua etc., and i supply them a 
wxArt2DConfig.cmake 
with all in it.
I need access to wxLua binding generator, and some more stuff.
Somehow i need to gather this information, and i know you have it around, but 
don't know how to get 
it yet from your lists.
Must be something like using ${ADD_LIBRARY_LIST} etc.

The easiest would be to have wxLuaConfig.cmake.in configured to containing 
information like this:

     wxLua_INCLUDE_DIRS
     wxLua_LIBRARY_DIRS
     wxLua_LIBRARIES
     wxLua_LIBRARIES_WXLIKE
     wxLua_PREFIX
     wxLua_wxWidgets_SELECTED_CONFIG

My own to detect wxLua without having it itself is here:
http://wxart2d.svn.sourceforge.net/viewvc/wxart2d/trunk/wxArt2D/packages/wxart2d/share/wxlua/wxLuaConfig.cmake.in?revision=274&view=markup

Also would you mind adding this, to at least have the libraries in one place?
Does not make a difference for your approach, but makes it easier to find it 
all for me, and makes 
it more compatible with what it was.

#set (LIBRARY_OUTPUT_PATH ${wxLua_BINARY_DIR}/lib )
set (LIBRARY_OUTPUT_PATH ${wxLua_BINARY_DIR}/lib CACHE PATH "Single output 
directory for building 
all libraries." FORCE )
#set (EXECUTABLE_OUTPUT_PATH ${wxLua_BINARY_DIR}/bin/ CACHE PATH "Single output 
directory for 
building all executables.")

At last i was able to make my FindwxWidgets.cmake work also for your files, if 
not i did get a 
conflict, between the default cmake version and mine when
I include the

ADD_SUBDIRECTORY(${wxLua_ROOT_DIR} ${CMAKE_BINARY_DIRECTORY}/wxLua)

Maybe there is more to on that, but i can't get that far yet.

If you don't have time, it can wait, i keep using the bakefile generated stuff 
for time being.
Else i keep on hacking, trying to make this work.

Regards,

Klaas

On 22-12-2011 2:28, John Labenski wrote:
>
> No it's far simpler. You simply add a variable in your CMakeLists.txt file
>
> set(wxLua_ROOT_DIR ${wxLua_ROOT_DIR} CACHE PATH "Set the path to the
> root directory of wxLua containing the CMakeLists.txt file")
> They set this variable in the cmake-gui or the command line and you
> can easily check it in your CMakeLists.txt file with
>
> IF (EXISTS ${wxLua_ROOT_DIR}/CMakeLists.txt)
>      # Note that wxLua could be anywhere
>      ADD_SUBDIRECTORY(${wxLua_ROOT_DIR} ${CMAKE_BINARY_DIRECTORY}/wxLua)
> ELSE()
>      MESSAGE(WARNING "Invalid path to the wxLua library : 
> '${wxLua_ROOT_DIR}'")
> ENDIF()
>
>


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to