[CMake] decision based on being a nested project

2010-06-08 Thread Nathan Huesken
Hi, As can be read in an earlier thread, I am trying to nest a cmake project (call it "inner") into another cmake project (call it "outer"). The "inner" project should be extracable and run as its own project. Having trouble with EXTERNALPROJECT_ADD, I am trying to add the project as a subdir. So

Re: [CMake] Nesting a cmake project

2010-06-07 Thread Nathan Huesken
On Mon, 7 Jun 2010 10:48:30 -0700 Tyler Roscoe wrote: > On Mon, Jun 07, 2010 at 11:54:12AM -0400, Nathan Huesken wrote: > > I have a cmake project into which I want to nest another cmake > > project. The nested cmake project is a complete project working on > > its own

[CMake] Nesting a cmake project

2010-06-07 Thread Nathan Huesken
Hi, I have a cmake project into which I want to nest another cmake project. The nested cmake project is a complete project working on its own, and the outer cmake project depends on it. So when the outer cmake project is build, the inner one should be build first. The inner, as well as the outer c

[CMake] Renaming directory while installing

2009-12-09 Thread Nathan Huesken
Hi, I can install a directory in cmake doing: INSTALL(DIRECTORY ${SRCDIR} DESTINATION destdir) which will create a dir under destdir with the name of the source directory. Now I want to do this, but name the destination directory differently than the original. Can this be done? Thanks! Nathan _

Re: [CMake] Setting up mingw toolchain for crosscompiling from Linux

2008-05-12 Thread Nathan Huesken
That was the problem! Thanks!!! On Mon, May 12, 2008 at 04:52:54PM +0200, Andrea Gualano wrote: > Nathan Huesken wrote: >> I removed CMakeChache.txt, I also removed the CMakeFiles folder. >> Still does not use the correct gcc. >> It is like it would ignore the DCMAKE_TOO

Re: [CMake] Setting up mingw toolchain for crosscompiling from Linux

2008-05-12 Thread Nathan Huesken
n On Sun, May 11, 2008 at 10:37:12PM +0200, Alexander Neundorf wrote: > On Sunday 11 May 2008, Nathan Huesken wrote: > > Hi, > > > > My cmake project works now! > > Now I want to crosscompile to Windows. I am under gentoo and installed > > mingw toolchain (which

[CMake] Setting up mingw toolchain for crosscompiling from Linux

2008-05-11 Thread Nathan Huesken
Hi, My cmake project works now! Now I want to crosscompile to Windows. I am under gentoo and installed mingw toolchain (which works, I can manually compile with it). Then I setup the Toolchain-mingw32.cmake as suggested here: http://www.cmake.org/Wiki/CmakeMingw # the name of the target operati

Re: [CMake] CMake and Clanlib

2008-05-11 Thread Nathan Huesken
On Sun, May 11, 2008 at 06:08:37PM +0200, Alexander Neundorf wrote: > On Sunday 11 May 2008, Nathan Huesken wrote: > > Hi, > > > > I am completly new to cmake, I want to use it in a project, where I also > > use ClanLib. What I did: > > I downloaded http://www.cm

[CMake] CMake and Clanlib

2008-05-11 Thread Nathan Huesken
Hi, I am completly new to cmake, I want to use it in a project, where I also use ClanLib. What I did: I downloaded http://www.cmake.org/Wiki/CMakeUserFindClanLib into ClanLibConfig.cmake This is my CMakeLists.txt: SET(sources main.cc) SET(ClanLib_DIR /home/ls/Project/) FIND_PACKAGE(ClanLib) INCL