Re: [CMake] Visual Studio project layout

2010-12-21 Thread Diablo 666
> Search for property SOLUTION_FOLDER, introduced in 2.8.3. Thanks a lot, that was exactly what I was looking for! (It seems actually, that the property is called FOLDER now) ___ Powered by www.kitware.com V

Re: [CMake] copy_resolved_item_into_bundle doesn't copy when I want it to

2010-12-21 Thread David Cole
copy_resolved_item_into_bundle only skips the copy if the file to be copied and the destination file refer to exactly the same file. In that sense, it already is a copy_if_different. On the Mac, after a bundle is created and fixed up for the first time, all the references from one library to anoth

Re: [CMake] Possible 'brief' output options for UnixMakefileGenerator

2010-12-21 Thread David Cole
One more alternative worth considering here that is cross-platform and doesn't require a wrapper script. (Not sure if it quiets things down enough for you or not, but the latest change to this feature will quiet things a little bit more starting with the upcoming CMake 2.8.4.) See the RULE_MESSAGE

Re: [CMake] Possible 'brief' output options for UnixMakefileGenerator

2010-12-21 Thread Campbell Barton
The problem with with RULE_MESSAGES is that it is too close to "make > /dev/null". If a file is built there is no info about this. The main issue for me is partial rebuilds flood the console. eg, for blender, a build with no changes prints 83 lines like this... [ 1%] Built target bf_editor_anima

[CMake] FindQt4 doesn't provide plugin variables

2010-12-21 Thread Mike McQuaid
It would be good if FindQt4 looked for the various plugins that can be installed with Qt and gave the path to them (both release and debug versions) and searched using the various filenames that are possible. I'd suggest providing variables like: QT_SQLITE_PLUGIN_LIBRARY_RELEASE In addition, it w

[CMake] CPACK_NSIS_MUI_ICON only used when CPACK_NSIS_MUI_UNIICON also set

2010-12-21 Thread Mike McQuaid
CPACK_NSIS_MUI_ICON can only used when CPACK_NSIS_MUI_UNIICON also set as the C++ code seems to require them both to have a value. Surely this could be an || rather than an && here as there's no reason why the user should have to set both to have one change? If this is not intentional, let me know

[CMake] CMAKE_SKIP_INSTALL_RULES doesn't work

2010-12-21 Thread Mike McQuaid
CMAKE_SKIP_INSTALL_RULES, referenced in the documentation for InstallRequiredSystemLibraries doesn't work as is documented. This is because it's not referenced in the module file at all. I think this is a typo and should have been renamed to CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP in either the doc

[CMake] InstallRequiredSystemLibraries cannot install just debug libraries

2010-12-21 Thread Mike McQuaid
There's no way currently to install or get just the debug libraries for InstallRequiredSystemLibraries. As this would usually be used for packaging, it makes sense to only distribute the debug versions on debug builds. I can create a patch for this if it would be accepted. I filed a bug report ab

Re: [CMake] FindQt4 doesn't provide plugin variables

2010-12-21 Thread Michael Jackson
On Dec 21, 2010, at 9:41 AM, Mike McQuaid wrote: It would be good if FindQt4 looked for the various plugins that can be installed with Qt and gave the path to them (both release and debug versions) and searched using the various filenames that are possible. I'd suggest providing variables like:

Re: [CMake] FindQt4 doesn't provide plugin variables

2010-12-21 Thread Mike McQuaid
On 21 December 2010 15:01, Michael Jackson wrote: > I'll vote for this one also. I have my own code that looks for the Qt Plugin > DLLs and adds the variables but it is pretty ugly. Something the is "built > in" would help big time. Check out/test my patch. It (fairly) intelligently loops through

[CMake] Problem building libraries with no sources with Visual Studio 9 (2008)

2010-12-21 Thread Pere Mato Vila
Dear all, I am trying to build shared libraries on Windows exporting all symbols. This is as an alternative of instrumenting the code with dllimport/dllexport declarations. For this I do build first a static library from which I get all the defined symbols to write a .DEF file which is then u

Re: [CMake] Problem building libraries with no sources with Visual Studio 9 (2008)

2010-12-21 Thread Michael Jackson
You will want to read this article: http://www.cmake.org/Wiki/BuildingWinDLL ___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software Dayton, Ohi

Re: [CMake] Problem building libraries with no sources with Visual Studio 9 (2008)

2010-12-21 Thread Pere Mato Vila
Hi, I did read the article. The point is that I am trying to port a number of very large projects to CMake that have been always build without code instrumentation, which I am convinced is the best and optimal way of doing it. But in this case the code instrumentation is not practical for a nu

Re: [CMake] FindQt4 doesn't provide plugin variables

2010-12-21 Thread Mike McQuaid
On 21 December 2010 16:41, Clinton Stimpson wrote: > Would you prefer having a set of variables that point to the dlls, or would > you rather have a function that takes a list of Qt modules and copies the > necessary plugins for those Qt modules to a certain location? > It seems the latter is more

Re: [CMake] FindQt4 doesn't provide plugin variables

2010-12-21 Thread Michael Jackson
On Dec 21, 2010, at 11:45 AM, Mike McQuaid wrote: On 21 December 2010 16:41, Clinton Stimpson wrote: Would you prefer having a set of variables that point to the dlls, or would you rather have a function that takes a list of Qt modules and copies the necessary plugins for those Qt module

[CMake] Please Help - Find HDF5 module on windows isn't finding

2010-12-21 Thread Aaron R>
I'm trying to setup a cmake project on windows which needs the HDF5 library. I put the prebuilt libraries under c:\hdf5-1.8.5-win32. I set HDF5_ROOT in the cmakelists file and then called find(HDF5). Its not finding it. I've tried specifying components as well and still nothing. I didn't under

Re: [CMake] FindQt4 doesn't provide plugin variables

2010-12-21 Thread Mike McQuaid
On 21 December 2010 16:54, Michael Jackson wrote: > I would like to have variables to the DLLs also (actually ALL the DLLs, not > just the plugins) because under certain use cases those are needed. Here is > my use case. > > Setup: Windows 7 x64 with Qt 4.6.x built as BOTH 32 and 64 bit and instal

Re: [CMake] copy_resolved_item_into_bundle doesn't copy when I want it to

2010-12-21 Thread Ben Medina
That sounds fine. However, I have install rules located in multiple files; my project contains multiple apps, and each apps has its install rules in its own lists file. Where do I put my "delete bundle" install code to ensure that it runs before all other install commands? Thanks, Ben On Tue, Dec

Re: [CMake] copy_resolved_item_into_bundle doesn't copy when I want it to

2010-12-21 Thread David Cole
I would think immediately before the first install rule that installs the bundle itself or something into the bundle location (assuming you have such a thing). Otherwise, simply before whatever it is that initially creates the bundle on which you are calling fixup_bundle... On Tue, Dec 21, 2010

Re: [CMake] Please Help - Find HDF5 module on windows isn't finding

2010-12-21 Thread Tyler Roscoe
On Tue, Dec 21, 2010 at 10:04:25AM -0700, Aaron R> wrote: > I'm trying to setup a cmake project on windows which needs the HDF5 > library. I put the prebuilt libraries under c:\hdf5-1.8.5-win32. I set > HDF5_ROOT in the cmakelists file and then called find(HDF5). Its not > finding it. I've trie

Re: [CMake] Please Help - Find HDF5 module on windows isn't finding

2010-12-21 Thread Aaron R>
I had a 'duh-phiphany'. I realized the find module doesn't use HDF5_ROOT as a cache variable. Its expected to be an environment variable. I created a cache variable and used that with a set(ENV xxx) call and then did the find(HDF5) call. Works great. Thanks for the suggestions. They will help

[CMake] BundleUtilities example not working under Windows?

2010-12-21 Thread Crni Gorac
Am trying to employ fixup_bundle(), in order to be able to create installers for my Qt-dependent application on Mac and Windows. I have it working fine under Mac, but on Windows it is not working either with my application, or by example from CMake Wiki pages: http://www.cmake.org/Wiki/BundleUtili

Re: [CMake] BundleUtilities example not working under Windows?

2010-12-21 Thread Tyler Roscoe
On Tue, Dec 21, 2010 at 07:11:36PM +0100, Crni Gorac wrote: > Am trying to employ fixup_bundle(), in order to be able to create > installers for my Qt-dependent application on Mac and Windows. I have > it working fine under Mac, but on Windows it is not working either > with my application, or by

Re: [CMake] Problem building libraries with no sources with Visual Studio 9 (2008)

2010-12-21 Thread Michael Hertling
On 12/21/2010 04:13 PM, Pere Mato Vila wrote: > Dear all, > > I am trying to build shared libraries on Windows exporting all symbols. > This is as an alternative of instrumenting the code with dllimport/dllexport > declarations. For this I do build first a static library from which I get all

Re: [CMake] Problem building libraries with no sources with Visual Studio 9 (2008)

2010-12-21 Thread Bill Hoffman
On 12/21/2010 2:17 PM, Michael Hertling wrote: AFAIK, this is because CMake does not know how to handle a .def file for incorporation in the target, i.e. ${library}.def has no LANGUAGE Actually, it should... Something like this should work: (assumes you have a perl script to create a .def fi

Re: [CMake] BundleUtilities example not working under Windows?

2010-12-21 Thread Crni Gorac
On Tue, Dec 21, 2010 at 7:50 PM, Tyler Roscoe wrote: > On Tue, Dec 21, 2010 at 07:11:36PM +0100, Crni Gorac wrote: >> Am trying to employ fixup_bundle(), in order to be able to create >> installers for my Qt-dependent application on Mac and Windows.  I have >> it working fine under Mac, but on Win

Re: [CMake] BundleUtilities example not working under Windows?

2010-12-21 Thread Crni Gorac
On Tue, Dec 21, 2010 at 9:39 PM, Crni Gorac wrote: > > [ ... ] > > My project is not that important at the moment, as the QtTest example > from the Wiki page I mentioned above is not working. When I run CPack > after building this project (once again: am using CMake 2.8.3, on a > Windows 7 Profe

Re: [CMake] Problem building libraries with no sources with Visual Studio 9 (2008)

2010-12-21 Thread Michael Hertling
On 12/21/2010 08:45 PM, Bill Hoffman wrote: > On 12/21/2010 2:17 PM, Michael Hertling wrote: > >> AFAIK, this is because CMake does not know how to handle a .def file >> for incorporation in the target, i.e. ${library}.def has no LANGUAGE > > Actually, it should... > > > Something like this sho

Re: [CMake] BundleUtilities example not working under Windows?

2010-12-21 Thread Crni Gorac
On Tue, Dec 21, 2010 at 10:27 PM, Crni Gorac wrote: > >[ ... ] > > > Just an additional notice: I just discovered "--verbose" flag of > CPack, and it could be that the reason for fixup_bundle() not being > able to find dependencies is that I don't have dumpbin installed - > namely, I've notice

[CMake] problem w/ "find_package"_ makefile does not always compile

2010-12-21 Thread ny
greetings! I spent enough time trying to make the software work, so I'd be happy to get some feedback:: I built research code written in (templated) c++, size is approximately ~15K lines. I am on a mac and do not use Cocoa(/xcode), straight from command line. Note that I choose to generate a Unix

Re: [CMake] can't build translated makefile on snow leopard 10.6.5 w/ g++ 4.2.1 (complaint: g++: No such file or directory, although g++ is there!!)

2010-12-21 Thread ny
Okay, it turns that a setenv command in my .profile caused all this trouble (I am using bash) together w/ a system-specific command in the CMakeLists. issue *almost* resolved, but I'd like to get some feedback for this [CMake] problem w/ "find_package"_ makefile does not always compile

Re: [CMake] BundleUtilities example not working under Windows?

2010-12-21 Thread Michael Jackson
Were you using cmake from a "Visual Studio Command prompt" or a normal command prompt. According to Microsoft you MUST run dumpbin.exe from a "Visual Studio Command Prompt". It seems that dumpbin.exe is included all the way back to Visual Studio 2005. Hope that helps. __

Re: [CMake] BundleUtilities example not working under Windows?

2010-12-21 Thread David Cole
On Tue, Dec 21, 2010 at 6:13 PM, Crni Gorac wrote: > On Tue, Dec 21, 2010 at 10:27 PM, Crni Gorac wrote: > > > >[ ... ] > > > > > > Just an additional notice: I just discovered "--verbose" flag of > > CPack, and it could be that the reason for fixup_bundle() not being > > able to find depend

[CMake] Make-ing specific target in a SWIG module

2010-12-21 Thread Bill Spotz
Hello, I have a CMake build system that includes a subdirectory that builds a python interface using SWIG. I would like to run make with a target specified such that the swig command is called but the resulting wrapper file is not compiled. The CMakeLists.txt file that controls this part of t

[CMake] code::blocks project generated by cmake can not set arguments to main func

2010-12-21 Thread tfjiang
Hi,everyone. While using cmake to generate a code::blocks project, I met a problem. I can not send argument to "int main(int argc,char *argv[])". I found some suggestions like that: add arguments in "projects-send programs' argument". It works in my testing project which is directly generated by c