[CMake] Accessing source directory of a target

2015-06-12 Thread Robert Dailey
Hello, Is there a SOURCE_DIR property for targets? I wasn't able to find anything in the documentation on this, however I thought I saw something similar to this a few years ago. I'm using CMake 3.2. Basically I want the equivalent of CMAKE_CURRENT_SOURCE_DIR, but for a specific project.

[CMake] The source directory

2013-04-18 Thread 中野佑香
gromacs-4.6.1 $ mkdir build $ cd build $ cmake .. However, I got an error. - CMake Error: The source directory /home/okayuka/Gromacs does not appear to contain CMakeLists.txt. Specify --help

Re: [CMake] The source directory

2013-04-18 Thread Johannes Zarl
Hi, On Thursday, 18. April 2013, 09:02:13, 中野佑香 wrote: $ tar -xvzf gromacs-4.6.1.tar.gz $ cd gromacs-4.6.1 $ mkdir build $ cd build $ cmake .. However, I got an error. --- CMake Error: The source directory /home

Re: [CMake] Multiple source directory scenario and cdt generator

2011-11-16 Thread Alexander Neundorf
On Wednesday 16 November 2011, Dan Kegel wrote: On Tue, Nov 15, 2011 at 1:28 PM, Dan Kegel d...@kegel.com wrote: Tried it. It seems to get the linking right, though I'm not sure how excited my users are going to be about how deeply buried those source files are in the GUI. There's a

Re: [CMake] Multiple source directory scenario and cdt generator

2011-11-16 Thread Dan Kegel
On Wed, Nov 16, 2011 at 9:43 AM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: I suspect that the only way to make source code control plugins happy is to link to dummy projects like you do for the main source directory. And then there's no need for those individual source file links.

Re: [CMake] Multiple source directory scenario and cdt generator

2011-11-16 Thread Alexander Neundorf
On Wednesday 16 November 2011, Dan Kegel wrote: On Wed, Nov 16, 2011 at 9:43 AM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: I suspect that the only way to make source code control plugins happy is to link to dummy projects like you do for the main source directory. And then

Re: [CMake] Multiple source directory scenario and cdt generator

2011-11-15 Thread Dan Kegel
On Mon, Nov 14, 2011 at 3:37 PM, Dan Kegel d...@kegel.com wrote: On Sat, Nov 12, 2011 at 11:04 AM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: * please give current cmake master a try, it has several improvements. I'll give cmake master a spin sometime this week. Tried it. It seems to

Re: [CMake] Multiple source directory scenario and cdt generator

2011-11-15 Thread Dan Kegel
On Tue, Nov 15, 2011 at 1:28 PM, Dan Kegel d...@kegel.com wrote: Tried it.  It seems to get the linking right, though I'm not sure how excited my users are going to be about how deeply buried those source files are in the GUI.  There's a whole lot of visual cruft around them. Worse, the Team

Re: [CMake] Multiple source directory scenario and cdt generator

2011-11-14 Thread Dan Kegel
On Sat, Nov 12, 2011 at 11:04 AM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: Ok. So two things: * please give current cmake master a try, it has several improvements. * please create a ticket in the cmake bug tracker for this, improved source- project generator for Eclipse, or something

Re: [CMake] Multiple source directory scenario and cdt generator

2011-11-12 Thread Alexander Neundorf
On Saturday 12 November 2011, Dan Kegel wrote: In http://www.cmake.org/pipermail/cmake/2011-November/047250.html I wrote I can't reorganize the source tree on the developers, so I'm making do by putting the enclosing CMakeLists.txt next to all the projects: toplevel/trunk/CMakeLists.txt

[CMake] Multiple source directory scenario and cdt generator

2011-11-11 Thread Dan Kegel
In http://www.cmake.org/pipermail/cmake/2011-November/047250.html I wrote I can't reorganize the source tree on the developers, so I'm making do by putting the enclosing CMakeLists.txt next to all the projects: toplevel/trunk/CMakeLists.txt which is checked out to toplevel/CMakeLists.txt It

Re: [CMake] Multiple source directory scenario and cdt generator

2011-11-11 Thread Dan Kegel
On Fri, Nov 11, 2011 at 11:01 PM, Dan Kegel d...@kegel.com wrote: I have no idea how to make that happen inside the cdt generator.  I could kludge it in the shell script that runs cmake, but then it would break whenever the project was updated and cmake rebuilt the project automatically. OK,

Re: [CMake] Bad source directory?

2011-07-18 Thread felix jeneau
that is actually being executed? Date: Wed, 13 Jul 2011 16:56:44 -0400 Subject: Re: [CMake] Bad source directory? From: david.c...@kitware.com To: felix_jen...@hotmail.com CC: cmake@cmake.org It looks like OgreTut must have a subdirectory named CONF=Release. Which is unfortunate

[CMake] Bad source directory?

2011-07-13 Thread felix jeneau
Hello to all, I'm trying to use CMake with Netbeans 6.9. I'm working with Ogre3D and they provided a CMakeLists.txt file. Everything works fine via cmake-gui.exe (CMake v2.8), but when I attempt to build my project in Netbeans, it spits out: CMake Error: The path to the source directory:

Re: [CMake] Bad source directory?

2011-07-13 Thread David Cole
It looks like OgreTut must have a subdirectory named CONF=Release. Which is unfortunate, because the fix for this bug: http://public.kitware.com/Bug/view.php?id=11689 simply disallows = characters in the source directory names. I'm afraid the only solution here is to rename that directory.