On Sun, Dec 25, 2011 at 1:18 PM, klaas.holwerda <n...@klaasholwerda.nl> wrote: > ADD_SUB_DIRECTORY became too complicated, and i would need to make to many > changes, maybe later. > For the moment my original approach was the easiest to get working.
Why doesn't it just work when do ADD_SUBDIRECTORY("path/to/wxLua" "Output/path") then put in the libs and includes just like the wxLua/apps/CMakeLists.txt? > One thing i noticed is that i must build in the wxLua trunk itself. If not > wxLua_ROOT_DIR pointing > to the build directory is not enough. No, I don't need to do anything special with a project I have that links to a couple wxCode projects and wxLua. > Some files i need must come from the trunk. With bakefile it seems i did the > same, but there i did > set the WXLUA env variable to get to these files. All I do is in a top-level CMakeLists.txt is do the ADD_SUBDIRECTORY(wxLua....) as above, then for anything that depends on it ADD_SUBDIRECTORY(other/project...) In the other project I only have these include_directories( ${wxLua_ROOT_DIR}/ ${wxLua_ROOT_DIR}/modules/ ${wxLua_ROOT_DIR}/modules/lua/src ${wxLua_ROOT_DIR}/apps/wxluaedit/src ${wxLua_ROOT_DIR}/modules/wxbind/setup) and link to these libs wxLuaBindLib wxLuaSocketLib wxLuaDebugLib wxLuaLib > Also after an install (with CMake), files are taken from the binary and > source tree, and combined as > one install. Like all headers, generated and already there. The install for wxLua is broken since it doesn't have a normal directory structure. I am debating switching to a more conventional layout so I could have #include "wxlua/blah.h" instead of the current #include "wxlua/include/blah.h" I won't have time until January to anything. -John ------------------------------------------------------------------------------ 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