Re: [CMake] cmake 2.8.2 win32: invalid escape sequence when finding fortran compiler

2010-07-14 Thread John Drescher
On Wed, Jul 14, 2010 at 11:15 AM, Verweij, Arjen verwe...@tass-safe.com wrote: Hi, You seem to have a path using \ instead of / Isn't that to be expected of a PATH setting on a Windows computer? Anyway, the path to the Visual Studio compiler is of the same format and cmake deals with it

Re: [CMake] cmake 2.8.2 win32: invalid escape sequence when finding fortran compiler

2010-07-14 Thread John Drescher
Be careful with your use of $ENV{PROGRAMFILES} - it might not give you what you expect on a 64-bit computer. Since the CMake binary is by default 32-bit, you need some logic to make sure you're looking where you think you're looking. I had that covered. I just shortened the example not to

Re: [CMake] CMake + UIC files -- Is this a bug with CMake or with me?

2010-07-20 Thread John Drescher
On Tue, Jul 20, 2010 at 2:48 PM, Andreas Pakulat ap...@gmx.de wrote: On 20.07.10 13:30:51, kent williams wrote: Let's try that again http://www.cornwarning.com/xfer/QTCmakeTest.tar.gz Still the same. Same here. I get a cute image that says Sorry Sam, I can't seem to find that URL. John

Re: [CMake] CMake + UIC files -- Is this a bug with CMake or with me?

2010-07-20 Thread John Drescher
On Tue, Jul 20, 2010 at 4:09 PM, kent williams nkwmailingli...@gmail.com wrote: Thanks.  I don't know if you've actually tried the project I put up to illustrate the project, but while what you say makes sense, it doesn't appear to fix the problem. It's frustrating for me; apparently, though

[CMake] Fwd: How to add a lib in a target/tool independent way?

2010-07-20 Thread John Drescher
On Tue, Jul 20, 2010 at 5:24 PM, Claus Klein claus.kl...@arcormail.de wrote: I have a cpp project with some lib targets and executables, which depends on the libs and the header files. I want to link the libs from my build/src tree and not the installed versions. With this snip below from my

Re: [CMake] [vtkusers] How to specify the path to VTK in CMake?

2010-07-21 Thread John Drescher
On Wed, Jul 21, 2010 at 10:45 AM, Michael Xanadu xanadu.mich...@googlemail.com wrote: Hi Zack, there's no VTK_DIR row in my CMake GUI. That's my problem. ;-) Do you have the advanced option selected in the cmake-gui? John ___ Powered by

Re: [CMake] Windows library target names

2010-07-22 Thread John Drescher
Shouldn't this be done automatically? No way. Not all users would want that on all platforms that CMake supports. Also it is very easy to add a single line to your CMakeLists.txt file.. What about shared vs static lib? Shared vs static runtime? x64 vs x86? You can do all of that similarly

Re: [CMake] Windows library target names

2010-07-22 Thread John Drescher
And then what? Having two DLLs with the same name is not going to work. Same for import or static libs. It would work fine if the dlls for multiple configurations were not all dumped in 1 folder. That is how I have used cmake for 2+ years. John ___

Re: [CMake] Windows library target names

2010-07-22 Thread John Drescher
On Thu, Jul 22, 2010 at 4:43 PM, Olaf van der Spek olafvds...@gmail.com wrote: On Thu, Jul 22, 2010 at 10:41 PM, John Drescher dresche...@gmail.com wrote: And then what? Having two DLLs with the same name is not going to work. Same for import or static libs. It would work fine if the dlls

Re: [CMake] Windows library target names

2010-07-22 Thread John Drescher
  You _can_ very easily do this if you want. The code is out there in the wild in the form of macros that can be invoked from CMake that will set all of this up for you. You just have to look for it (or ask the right person... ) I do this for my shared libraries although I do not put them

Re: [CMake] Windows library target names

2010-07-22 Thread John Drescher
I'm on the other side of that one. I don't know how many _days_ I have wasted because I linked my debug version with a release version of something else and had the strangest errors and app crashes. After pulling my hair out trying to debug something that does not need to be debugged I finally

Re: [CMake] How to link against a .dll with cmake?

2010-07-24 Thread John Drescher
I know that target_link_libraries can be used to link a .lib , but how to link a .dll into the project? You do not link against a .dll in windows ever. John ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] How to link against a .dll with cmake?

2010-07-24 Thread John Drescher
I know that target_link_libraries can be used to link a .lib , but how to link a .dll into the project? You do not link against a .dll in windows ever. When you create a .dll there is also a small import lib associated with the dll. You link with that and when the application starts it

[CMake] Fwd: How to link against a .dll with cmake?

2010-07-24 Thread John Drescher
Maybe I am misunderstanding the question or response, but I regularly link to .dll files using mingw. On Sat, Jul 24, 2010 at 11:00 PM, John Drescher dresche...@gmail.com wrote: I know that target_link_libraries can be used to link a .lib , but how to link a .dll into the project? You do

Re: [CMake] How to link against a .dll with cmake?

2010-07-24 Thread John Drescher
mingw can link using a .dll I do not have much mingw experience but I have around 15 of windows and Visual Studio experience. With Visual Studio you absolutely do not link your application with .dlls. You use import libs with a .lib extension the same way you do with a static lib. This import

Re: [CMake] [VS gen] Multiple configurations code

2010-07-26 Thread John Drescher
On Mon, Jul 26, 2010 at 1:00 PM, Olaf van der Spek olafvds...@gmail.com wrote: Hi, Where in the source code does the VS generator generate the multiple configurations? I believe all of that is in the modules. Its actually pretty easy to edit. I have modified this on my side several times to

Re: [CMake] [VS gen] Multiple configurations code

2010-07-26 Thread John Drescher
On Mon, Jul 26, 2010 at 2:57 PM, Olaf van der Spek olafvds...@gmail.com wrote: On Mon, Jul 26, 2010 at 7:07 PM, David Cole david.c...@kitware.com wrote: grep for CMAKE_CONFIGURATION_TYPES I'm quite sure adding more configuration types here won't suffice. IF(NOT CMAKE_NO_BUILD_TYPE AND

Re: [CMake] [VS gen] Multiple configurations code

2010-07-26 Thread John Drescher
On Mon, Jul 26, 2010 at 3:03 PM, Olaf van der Spek olafvds...@gmail.com wrote: On Mon, Jul 26, 2010 at 9:00 PM, John Drescher dresche...@gmail.com wrote: You need to add variables and such. I believe that is done in windows-cl.cmake I'd like to generate both dynamic and static, x86 and x64

Re: [CMake] [VS gen] Multiple configurations code

2010-07-26 Thread John Drescher
On Mon, Jul 26, 2010 at 4:24 PM, Olaf van der Spek olafvds...@gmail.com wrote: On Mon, Jul 26, 2010 at 10:12 PM, David Cole david.c...@kitware.com wrote: Is there a problem with multiple configures / build trees? No, not at all. We do this all the time. But again, I thought from your

Re: [CMake] [VS gen] Multiple configurations code

2010-07-26 Thread John Drescher
On Mon, Jul 26, 2010 at 4:35 PM, Olaf van der Spek olafvds...@gmail.com wrote: On Mon, Jul 26, 2010 at 10:31 PM, John Drescher dresche...@gmail.com wrote: You do not have multiple copies of the source. You have 1 copy of the source that you build in multiple trees. For me I build 32 and 64 bit

Re: [CMake] [VS gen] Multiple configurations code

2010-07-26 Thread John Drescher
On Mon, Jul 26, 2010 at 4:42 PM, John Drescher dresche...@gmail.com wrote: On Mon, Jul 26, 2010 at 4:35 PM, Olaf van der Spek olafvds...@gmail.com wrote: On Mon, Jul 26, 2010 at 10:31 PM, John Drescher dresche...@gmail.com wrote: You do not have multiple copies of the source. You have 1 copy

Re: [CMake] FindQt4 QT_LIBRARIES

2010-07-29 Thread John Drescher
Hello,I have looked at  FindQt4.cmake module for 2.8.2, but I can't find the code that sets the QT_LIBRARIES variable.Could someone point that out?Regards It's in UseQt4.cmake. HTH Michael I am now trying to link against QT debug libariries in the RelWithDebInfo cmake configuation

Re: [CMake] FindQt4 QT_LIBRARIES

2010-07-29 Thread John Drescher
It does crash currently with release libs for relwithdebingfo config. If I link against debug libs, it doesn't crash. The question is: when config is relwithdebingfo, how can I get TARGET_LINK_LIBRARIES to pick the debug version of the libs from QT_LIBRARIES? I use Qt release libs with my

Re: [CMake] libraryname decoration

2010-07-30 Thread John Drescher
Please do explain. How would this work? What would the API be? And now it suddenly sounds like CMake isn't supposed to do everything automagically anymore. If that is the case, please RTFM and look into the OUTPUT_NAME target property. It offers exactly what you want! Or the prefix

Re: [CMake] Help using CMake Expat in Windows

2010-07-30 Thread John Drescher
I have created a very simple CMake file (I am a newbie) that works wonderfully in Linux, but am having problems in Windows.  The CMakeLists.txt is below #I think 2.6 is required for some of things I do below, but I am not sure CMAKE_MINIMUM_REQUIRED(VERSION 2.6) # This is the CMake file

Re: [CMake] How to write CMakeLists.txt for Qt4 when Q_OBJECT in xxx.cpp file

2010-07-31 Thread John Drescher
when use QT4_WRAP_CPP( Generated_MOC_SRCS main.cpp ),  moc_main.cxx will be generated. then I use #include moc_main.cxx instead of #include main.moc but ${Generated_MOC_SRCS}  can not be added to  ADD_EXECUTABLE. otherwise moc_main.cxx will be compiled too. I am confused at the problem. I

Re: [CMake] How to write CMakeLists.txt for Qt4 when Q_OBJECT in xxx.cpp file

2010-07-31 Thread John Drescher
On Sat, Jul 31, 2010 at 10:50 AM, 1+1=2 dbzhang...@gmail.com wrote: I want to use command like this: QT4_GENERATE_MOC(${CMAKE_CURRENT_SOURCE_DIR}/main.cpp main.moc) but I do not know how to make this run before main.cpp being compiled to main.o anyone can help me? Besides the fact that

Re: [CMake] Help using CMake Expat in Windows

2010-07-31 Thread John Drescher
On Sat, Jul 31, 2010 at 11:18 AM, Rolf Eike Beer e...@sf-mail.de wrote: Am Samstag 31 Juli 2010, 00:59:36 schrieb Stefan Buschmann: Am 30.07.2010 22:23, schrieb Clark Taylor: ADD_EXECUTABLE(myApp ${Headers} ${Src}) You should not need to add ${Headers} here (usually only the sources

Re: [CMake] How to write CMakeLists.txt for Qt4 when Q_OBJECT in xxx.cpp file

2010-07-31 Thread John Drescher
On Sat, Jul 31, 2010 at 9:05 AM, 1+1=2 dbzhang...@gmail.com wrote: Thanks for your answer. when use QT4_WRAP_CPP( Generated_MOC_SRCS main.cpp ),  moc_main.cxx will be generated. then I use #include moc_main.cxx instead of #include main.moc but ${Generated_MOC_SRCS}  can not be added to  

Re: [CMake] How to write CMakeLists.txt for Qt4 when Q_OBJECT in xxx.cpp file

2010-07-31 Thread John Drescher
On Sat, Jul 31, 2010 at 11:28 AM, John Drescher dresche...@gmail.com wrote: On Sat, Jul 31, 2010 at 9:05 AM, 1+1=2 dbzhang...@gmail.com wrote: Thanks for your answer. when use QT4_WRAP_CPP( Generated_MOC_SRCS main.cpp ),  moc_main.cxx will be generated. then I use #include moc_main.cxx

Re: [CMake] Visual Studio Express projects don't inherit from parent

2010-08-16 Thread John Drescher
On Mon, Aug 16, 2010 at 9:53 PM, Tron Thomas tron.tho...@frontier.com wrote: On 08/16/2010 10:38 AM, Brian Davis wrote: First off, I don't know the answer to your question, but I am curious how you are getting CMake to create inherited projects.  What are the commands you are suing to create

Re: [CMake] [Insight-users] CMake 2.8.0 problem

2010-08-21 Thread John Drescher
I've tried to configure InsightToolkit-3.16.0 using CMake 2.8.0 and I'm using Visual c++ 2008 Express Edition. what I did, I just select source file(InsightToolkit-3.16.0) and binary file and  I've got the following message: Check for working C compiler: cl CMake Error: Remove failed on

Re: [CMake] Boost lib error when linking executable

2010-08-24 Thread John Drescher
On Tue, Aug 24, 2010 at 9:57 AM, Oenen, Jodi van jodi.vanoe...@tass-safe.com wrote: Hi, We are migrating an 'old' Make project into the CMake world, and I am encountering a problem during the link phase of one of our executables: the linker cannot open a boost library. I am using CMake

Re: [CMake] Boost lib error when linking executable

2010-08-24 Thread John Drescher
True :) As I said, I'm just replicating the current Make system, in which those same 32 bit libs are used -- and it works. CMake even adds some extra 32 bit libs to the command line; I think they are added in Windows-icl.cmake (CMAKE_C_STANDARD_LIBRARIES_INIT). So I'd say it should also

Re: [CMake] Boost lib error when linking executable

2010-08-24 Thread John Drescher
. I guess those X32.lib libraries are 64 bit, even though the names suggest otherwise (yay for Microsoft). I did not know that. Sorry. I admit, I have not looked at the lib names on my 64 bit builds. John ___ Powered by www.kitware.com Visit other

Re: [CMake] several questions about cmake

2010-08-26 Thread John Drescher
On Thu, Aug 26, 2010 at 6:47 AM, Hickel, Kelly kelly_hic...@bmc.com wrote: -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Mike McQuaid Sent: Thursday, August 26, 2010 1:12 AM To: Mark Roden Cc: cmake@cmake.org Subject: Re: [CMake]

Re: [CMake] Debugging CMAKE_SIZEOF_VOID_P

2010-08-31 Thread John Drescher
On Tue, Aug 31, 2010 at 12:01 PM, U.W. Mechatronics Lab mech...@engr.wisc.edu wrote: I am having trouble getting any return value from CMAKE_SIZEOF_VOID_P on one particular Win7x64  machine.  If I check out my tree on a different Win7x64 machine it seems to properly return a value of 8.  I’m

Re: [CMake] Debugging CMAKE_SIZEOF_VOID_P

2010-08-31 Thread John Drescher
On Tue, Aug 31, 2010 at 12:17 PM, John Drescher dresche...@gmail.com wrote: On Tue, Aug 31, 2010 at 12:01 PM, U.W. Mechatronics Lab mech...@engr.wisc.edu wrote: I am having trouble getting any return value from CMAKE_SIZEOF_VOID_P on one particular Win7x64  machine.  If I check out my tree

Re: [CMake] Debugging CMAKE_SIZEOF_VOID_P

2010-08-31 Thread John Drescher
I'm not sure how to do that - the guy that set up our tree/build system has a batch file written to extract cmake, setup some directories, then call the cmake gui to configure the tree.  What's thoroughly confusing is that this seems to work properly on my Win7x64 laptop on a W2K8x64 Server -

Re: [CMake] Debugging CMAKE_SIZEOF_VOID_P

2010-08-31 Thread John Drescher
Yes but this is an issue even before actually compiling code... so VS is not in the picture at this point in the process. Yes it is. CMake specifically detects the compiler and uses it to compile test programs to fills in the information for MAKE_SIZEOF_VOID_P. John

Re: [CMake] Debugging CMAKE_SIZEOF_VOID_P

2010-08-31 Thread John Drescher
Cmake specifically is using Visual Studio 9 2008 Win64 as the generator (via the cmakegui) Open a Visual Studio 2008 x64 Win64 Command Prompt. This should exist in the Tools menu for Visual Studio 2008. Then run your batch file inside that. If that fails clear the build folder first. John

Re: [CMake] cpack/nsis behavior

2010-09-03 Thread John Drescher
I've got this case where I'm using cpack to create nsis packages with a set of components that I want packaged. If I run the installer, things work. But, if I run the installer a second time (without doing an uninstall first), it doesn't do anything.  So, if one had manually removed files,

Re: [CMake] cpack/nsis behavior

2010-09-03 Thread John Drescher
On Fri, Sep 3, 2010 at 4:36 PM, John Drescher dresche...@gmail.com wrote: I've got this case where I'm using cpack to create nsis packages with a set of components that I want packaged. If I run the installer, things work. But, if I run the installer a second time (without doing

Re: [CMake] cpack/nsis behavior

2010-09-03 Thread John Drescher
I see that behavior too. So I see this commit introduce that behavior http://cmake.org/gitweb?p=cmake.git;a=commit;h=83ec8c35933439305895b8569b2125a7e091fc57 And the intention was to only install/remove the minimal  number of files when re-run to update the installation (or by clicking  

Re: [CMake] Windows 64 bit version?

2010-09-05 Thread John Drescher
On Sun, Sep 5, 2010 at 1:26 PM, David Doria daviddo...@gmail.com wrote: I don't see a 64 bit Windows binary here: http://www.cmake.org/cmake/resources/software.html Is the link missing? Or does this not exist for some reason? It does not exist and it is not needed. The 32 bit cmake

Re: [CMake] using only release versions of QT libraries

2010-09-09 Thread John Drescher
On Thu, Sep 9, 2010 at 3:06 PM, edA-qa mort-ora-y eda...@disemia.com wrote: My cmake file has the fairly standard QT setup: find_package(Qt4 COMPONENTS QtCore QtGui QtXml QtNetwork QtSvg QtOpenGL QtMain REQUIRED) include(${QT_USE_FILE}) and then later use ${QT_LIBRARIES} However, this

Re: [CMake] FindLibrary only looks for lib under Windows

2010-09-15 Thread John Drescher
Am Wednesday 15 September 2010 schrieb David Cole: find_library always looks for *.lib files on Windows. Those are the ones that need to be passed to the linker. The *.dll files are the ones that need to be there at runtime in order to run correctly. This behavior is intended, by design, and

Re: [CMake] VS Plugin error with VS 2010 and CMake 2.8.3 RC1

2010-09-22 Thread John Drescher
On Wed, Sep 22, 2010 at 4:20 PM, James Bigler jamesbig...@gmail.com wrote: I tried out CMake 2.8.3 RC1 with my project today.  When I modify a CMakeLists.txt file and compile, the reload project dialog starts up and I click No for don't start recompiling (because it calls ALL_BUILD instead of

Re: [CMake] setting Visual Studio solution name

2010-09-29 Thread John Drescher
I am not exactly sure what you are doing but on all my CMake projects I put only 1 target at the root level project. All other subprojects are in subdirectories of the root target. The CMakeLists for these subprojects can have project names but this is not needed. The solution gets the name from

Re: [CMake] CMake

2010-09-30 Thread John Drescher
I use cmake with qt projects for desktop application. Recently I've been started developing for symbian. I've found a generator for carbide but I use Qt Creator. I would like to generate Makefile like qmake does and then build the project with the Symbian toolchain. Qmake has also the

Re: [CMake] Stopping the VS build when configure fails

2010-09-30 Thread John Drescher
On Thu, Sep 30, 2010 at 7:47 PM, James Bigler jamesbig...@gmail.com wrote: On Thu, Sep 30, 2010 at 5:42 PM, James Bigler jamesbig...@gmail.com wrote: I'm currently using VS 2008 64 bit with CMake 2.6.3. This also happens with 2.8.3 RC1. That is good. I would be worried if it did not. The

Re: [CMake] Stopping the VS build when configure fails

2010-09-30 Thread John Drescher
On Thu, Sep 30, 2010 at 7:42 PM, James Bigler jamesbig...@gmail.com wrote: Is CMake supposed to stop the VS build when configure fails? Yes. John ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Stopping the VS build when configure fails

2010-10-01 Thread John Drescher
On Fri, Oct 1, 2010 at 2:21 AM, Rolf Eike Beer e...@sf-mail.de wrote: Am Friday 01 October 2010 schrieb John Drescher: On Thu, Sep 30, 2010 at 7:47 PM, James Bigler jamesbig...@gmail.com wrote: On Thu, Sep 30, 2010 at 5:42 PM, James Bigler jamesbig...@gmail.com wrote: I'm currently using VS

Re: [CMake] Stopping the VS build when configure fails

2010-10-01 Thread John Drescher
I just hit Build Solution which caused ZERO_CHECK project to run because my CMakeLists.txt file had changed.  ZERO_CHECK ran CMake which attempted to generate a new solution.  Typically this results in a good new project and the VS plugin detects this and asks me to load the new project files.

Re: [CMake] Get configuration-dependant LOCATION property

2010-10-04 Thread John Drescher
On Mon, Oct 4, 2010 at 5:15 PM, Mateusz Loskot mate...@loskot.net wrote: On 04/10/10 14:24, Michael Hertling wrote: On 10/04/2010 10:53 AM, Mateusz Loskot wrote: On 04/10/10 07:33, J Decker wrote: CMAKE_INSTALL_CONFIG_NAME I don't know if there's a simple flag like 'project supports multiple

Re: [CMake] Stopping the VS build when configure fails

2010-10-05 Thread John Drescher
On Fri, Oct 1, 2010 at 2:57 PM, John Drescher dresche...@gmail.com wrote: I just hit Build Solution which caused ZERO_CHECK project to run because my CMakeLists.txt file had changed.  ZERO_CHECK ran CMake which attempted to generate a new solution.  Typically this results in a good new project

Re: [CMake] Stopping the VS build when configure fails

2010-10-05 Thread John Drescher
CMake iterates over the Windows running object table (a COM thing) to find Visual Studio instances to ping to call the reload macro. When something is dead and stuck in the running object table (which happens occasionally, but thankfully not frequently) then CMake hangs in that iteration loop

Re: [CMake] how to get cmake and custom qt widget to work?

2010-10-05 Thread John Drescher
On Tue, Oct 5, 2010 at 2:59 PM, e...@cs.bgu.ac.il e...@cs.bgu.ac.il wrote: hello. I have a cmake+qt4 project, I needed to extend a certain gui item to suit my needs, I've been able to insert it into qtcreator and incorporate it into the project's gui, now when I run compilation, I get this:

Re: [CMake] how to get cmake and custom qt widget to work?

2010-10-05 Thread John Drescher
On Tue, Oct 5, 2010 at 3:41 PM, e...@cs.bgu.ac.il e...@cs.bgu.ac.il wrote: nope, like I wrote in the first post, I need a string spinbox so I've extended qspinbox to support strings. that is the custom widget in question. You need to add the path of where ever your custom widget is into one

Re: [CMake] CMake Visual Studio 64bit flag?

2010-10-08 Thread John Drescher
On Fri, Oct 8, 2010 at 12:50 PM, aaron.mead...@thomsonreuters.com wrote: Seems to work correctly from my tests: CMakeLists.txt: cmake_minimum_required (VERSION 2.8) project(test CXX) message( STATUS CMAKE_GENERATOR: ${CMAKE_GENERATOR}) message( STATUS CMAKE_CL_64: ${CMAKE_CL_64})

Re: [CMake] Reusing configuration

2010-10-11 Thread John Drescher
On Mon, Oct 11, 2010 at 9:32 AM, Fred Fred stan1...@hotmail.fr wrote: Hello, I suppose this question has already been asked here but I did not find any trace of it, including in the wiki. My students want to install PV at home and they need to build it from source in order to extend it. They

Re: [CMake] How to compile as release with /MT /GS in cmake?

2010-10-12 Thread John Drescher
On Tue, Oct 12, 2010 at 8:06 AM, Mr Shore shore.cl...@gmail.com wrote: I'm using cl.exe if that matters,thanks in advance! CMAKE_CXX_FLAGS_RELEASE is the variable you want. I believe this will do what you want: SET(CMAKE_CXX_FLAGS_RELEASE /MT /GS ) John

Re: [CMake] How to compile as release with /MT /GS in cmake?

2010-10-12 Thread John Drescher
On Tue, Oct 12, 2010 at 8:58 AM, Mr Shore shore.cl...@gmail.com wrote: Hi John Can I restrict the scope so that this setting is only for one specific target? If the targets are in their own subdirectory yes. Just set the variable in the CMakeLists.txt file in that target after all

Re: [CMake] cannot include txx files using CMake

2010-10-20 Thread John Drescher
On Wed, Oct 20, 2010 at 12:05 PM, Prathamesh Kulkarni prathameshmkulka...@gmail.com wrote: Hello all, I want to interface VTK and ITK. Hence I copied the required 4 files (2 txx and 2 cpp) in InsightApplications/Auxilliary/vtk to a common source directory which I want to include in all my

Re: [CMake] cannot include txx files using CMake

2010-10-20 Thread John Drescher
On Wed, Oct 20, 2010 at 12:19 PM, Prathamesh Kulkarni prathameshmkulka...@gmail.com wrote: Okay, could you please suggest an alternative over this issue? I add each file one by one in variables. The following is from an app used for unit testing my Qt SQLITE database for my current application.

Re: [CMake] Beginner's Question: Organizing Projects

2010-10-28 Thread John Drescher
On Thu, Oct 28, 2010 at 8:23 AM, Dominik Gabi dkgis...@gmail.com wrote: On Wed, 2010-10-27 at 10:54 -0500, Ryan Pavlik wrote: On Wed, Oct 27, 2010 at 9:04 AM, Rolf Eike Beer e...@sf-mail.de wrote: Thanks. The way I understand this is that now instead of

Re: [CMake] Beginner's Question: Organizing Projects

2010-10-28 Thread John Drescher
On Thu, Oct 28, 2010 at 8:29 AM, John Drescher dresche...@gmail.com wrote: On Thu, Oct 28, 2010 at 8:23 AM, Dominik Gabi dkgis...@gmail.com wrote: On Wed, 2010-10-27 at 10:54 -0500, Ryan Pavlik wrote: On Wed, Oct 27, 2010 at 9:04 AM, Rolf Eike Beer e...@sf-mail.de wrote: Thanks. The way I

Re: [CMake] CMake 2.8.3-rc4 ready for testing!

2010-10-29 Thread John Drescher
On Fri, Oct 29, 2010 at 6:03 PM, David Cole david.c...@kitware.com wrote: The CMake 2.8.3 release candidate stream continues! You can find the source and binaries here: http://www.cmake.org/files/v2.8/?C=M;O=D EXCEPT: There are not yet Irix or Sun pre-built binary installers available for

Re: [CMake] CMake 2.8.3-rc4 ready for testing!

2010-10-29 Thread John Drescher
I know its probably too late for 2.8.3 but can someone please look at the following bug: http://cmake.org/Bug/view.php?id=11206 This affects me on every single (in house) release of my application. A workaround is to do a monolithic install. SET(CPACK_MONOLITHIC_INSTALL 1) ...

Re: [CMake] CMake 2.8.3-rc4 ready for testing!

2010-10-29 Thread John Drescher
On Fri, Oct 29, 2010 at 8:17 PM, Karl Wallner cm...@karlwallner.de wrote: Am 30.10.2010 00:45, schrieb John Drescher: I know its probably too late for 2.8.3 but can someone please look at the following bug: http://cmake.org/Bug/view.php?id=11206 This affects me on every single (in house

Re: [CMake] CMake 2.8.3-rc4 ready for testing!

2010-10-30 Thread John Drescher
On Fri, Oct 29, 2010 at 8:57 PM, John Drescher dresche...@gmail.com wrote: On Fri, Oct 29, 2010 at 8:17 PM, Karl Wallner cm...@karlwallner.de wrote: Am 30.10.2010 00:45, schrieb John Drescher: I know its probably too late for 2.8.3 but can someone please look at the following bug: http

Re: [CMake] header files with visual studio

2010-11-04 Thread John Drescher
On Thu, Nov 4, 2010 at 11:58 AM, Oliver kfsone Smith osm...@playnet.com wrote: Checked the faq and googled as much as I could but I couldn't find anything describing how to make visual studio include header files in the solution/project files? Add them to the target just like you do C++

Re: [CMake] header files with visual studio

2010-11-05 Thread John Drescher
So, the question is actually: Is there a way to have CMake automatically add included headers to visual studio project files or do you need to use a dependency system to generate the lists by hand? Take a look at this:

Re: [CMake] Setting up CMake for Windows projects

2010-11-08 Thread John Drescher
On Mon, Nov 8, 2010 at 4:09 PM, Stormwind Developer stormwind@googlemail.com wrote: Greetings, I am a complete beginner to CMake, so my problem might be trivial. Nevertheless I did not find a solution yet. I am running Windows XP in a virtual machine on a linux host system. Having CMake

Re: [CMake] Trouble with non standard Qt installation.

2010-11-29 Thread John Drescher
On Mon, Nov 29, 2010 at 1:35 PM, tibur tiburti...@gmail.com wrote: Hello. Our team uses the same Windows (VS) Qt build, but all the developers don't store it at the same place on their hard drive. So qmake.exe doesn't contain the good include, library, ... directories. On the FindQt4.cmake

Re: [CMake] Trouble with non standard Qt installation.

2010-11-29 Thread John Drescher
On Mon, Nov 29, 2010 at 1:42 PM, John Drescher dresche...@gmail.com wrote: On Mon, Nov 29, 2010 at 1:35 PM, tibur tiburti...@gmail.com wrote: Hello. Our team uses the same Windows (VS) Qt build, but all the developers don't store it at the same place on their hard drive. So qmake.exe doesn't

Re: [CMake] Creating CMakeLists files from Solutions, Projects and Makefiles

2010-12-07 Thread John Drescher
On Tue, Dec 7, 2010 at 2:14 PM, Paul Dean aquawic...@hotmail.com wrote: I've been using CMAKE for a few years now and I absolutley LOVE it. It makes my life as a programmer so much easier to be able to generate project files on any platform. What hurts is doing the reverse.  I can't count how

Re: [CMake] Creating CMakeLists files from Solutions, Projects and Makefiles

2010-12-07 Thread John Drescher
And without the goal of switching from qmake to cmake, I don't see any point in doing a conversion in the first place - after all qmake can build the project on all interesting platforms already (else it would've been replaced). The reason I want this is there are a few QMake based libraries

Re: [CMake] Did anyone manage to get incremental linking working with NMake generator?

2010-12-08 Thread John Drescher
Providing /INCREMENTAL:YES VS2010 linker complains that this is deprecated and still does a FULL link. This is normal behavior in Visual Studio for the first build since there was no previous full. Did you try modifying a file after it built and building again without cleaning? John

Re: [CMake] Did anyone manage to get incremental linking working with NMake generator?

2010-12-09 Thread John Drescher
Haven't been following this thread closely, but changing the handling of /INCREMENTAL is a pain, at least in VS 2005 and 2008. Here is some code we use to *disable* /INCREMENTAL. With a little creativity, you could probably use this to forcibly *enable* /INCREMENTAL :): Thanks. I look into

Re: [CMake] Did anyone manage to get incremental linking working with NMake generator?

2010-12-09 Thread John Drescher
On Thu, Dec 9, 2010 at 2:47 PM, Bill Hoffman bill.hoff...@kitware.com wrote: On 12/9/2010 12:32 PM, John Drescher wrote: Haven't been following this thread closely, but changing the handling of /INCREMENTAL is a pain, at least in VS 2005 and 2008. Here is some code we use to *disable

Re: [CMake] CMake bug tracker discussion

2010-12-09 Thread John Drescher
I'll start the ball rolling by saying that, personally, I like the bug tracker. I find it much easier to keep a list of issues organized and accessible than I can with email filters and folders. But I still see a need for both tools. What do you say? I like the current system. Especially

Re: [CMake] Copying some files using CMake

2010-12-23 Thread John Drescher
On Thu, Dec 23, 2010 at 11:18 AM, Stormwind Dev stormwind@googlemail.com wrote: Dear List, I've got a question on copying some files from one directory to another using CMake. Let's say, I got some libraries collected in a special directory. I want CMake to copy these libs to the

[CMake] Copying some files using CMake

2010-12-23 Thread John Drescher
-- Forwarded message -- From: John Drescher dresche...@gmail.com Date: Thu, Dec 23, 2010 at 12:03 PM Subject: Re: [CMake] Copying some files using CMake To: Stormwind Dev stormwind@googlemail.com On Thu, Dec 23, 2010 at 11:53 AM, Stormwind Dev stormwind@googlemail.com

Re: [CMake] Visual Studio 2010 Generator Missing?

2010-12-28 Thread John Drescher
Just a small piece of feedback. All the other Visual Studio generators are in order, ie, VS 6, VS 7, VS 8, VS 9 so it made sense to look for VS 10 below VS 9. Was there a specific reason for putting VS 10 above VS 6 and thus out of order? Maybe the combo box is sorted? John

[CMake] Fwd: Disabling exceptions and rtti on VS

2010-12-31 Thread John Drescher
-- Forwarded message -- From: John Drescher dresche...@gmail.com Date: Fri, Dec 31, 2010 at 9:42 AM Subject: Re: [CMake] Disabling exceptions and rtti on VS To: Óscar Fuentes o...@wanadoo.es On Fri, Dec 31, 2010 at 9:27 AM, Óscar Fuentes o...@wanadoo.es wrote: If /EHs- /EHs-c

Re: [CMake] TARGET_LINK_LIBRARIES not working for MSVC

2011-01-08 Thread John Drescher
TARGET_LINK_LIBRARIES(hybridnccsurfacecoloring bundler imagelib matrix mathlib                       5point libsba  libepnp                       sfm libDescriptors f2c  minpack lapack ann) if(WIN32) TARGET_LINK_LIBRARIES(hybridnccsurfacecoloring getopt jpeg) endif(WIN32) I do not think

[CMake] Fwd: TARGET_LINK_LIBRARIES not working for MSVC

2011-01-08 Thread John Drescher
-- Forwarded message -- From: Avanindra Singh avanindra.si...@gmail.com Date: Sat, Jan 8, 2011 at 9:31 AM Subject: Re: [CMake] TARGET_LINK_LIBRARIES not working for MSVC To: John Drescher dresche...@gmail.com Hi john, Thanks for the reply.Multiple TARGET_LINK_LIBRARIES  did

Re: [CMake] Fwd: TARGET_LINK_LIBRARIES not working for MSVC

2011-01-08 Thread John Drescher
On Sat, Jan 8, 2011 at 10:17 AM, Avanindra Singh avanindra.si...@gmail.com wrote: Hi Eric, Thanks for the reply. It was very useful. I incorporated the changes you mentioned. I removed all the link_libraries macros from the projects. Also I changed camke_minimum_version to 2.6 . I have CMake

Re: [CMake] module contribution?

2011-01-09 Thread John Drescher
On Sat, Jan 8, 2011 at 7:55 PM, Nico Schlömer nico.schloe...@gmail.com wrote: Quick question here: I have a couple of libraries here which all need NetCDF, so I was thinking the cleanest solution would be to write one FindNetCDF.cmake and use it everywhere. What's the policy of including

Re: [CMake] How to assign version numbers from a source header to CMake variables?

2011-01-12 Thread John Drescher
I would like the add the CMake approach for software generation to a project. My project example supports also other build tools. This has got consequences on the way how informations like version numbers are shared between these approaches. The CMake tutorial describes components for the

Re: [CMake] MSVC 2010

2011-01-18 Thread John Drescher
I mean the option -G to specify the target build system. In my cmake 2.8.3 there is only MSVC 2008. Or d oyou refer to the latest development version of cmake? That supports VC2010 as well. John ___ Powered by www.kitware.com Visit other Kitware

Re: [CMake] MSVC 2010

2011-01-18 Thread John Drescher
On Tue, Jan 18, 2011 at 1:17 PM, Bill Hoffman bill.hoff...@kitware.com wrote: On 1/18/2011 1:07 PM, Hendrik Sattler wrote: What I meant to say: the .NET in the name is not important, being it the official product name or not. 7/8/9/10 or [.NET] 2003/2005/2008/2010, who cares. I find it more

[CMake] FILE( MAKE_DIRECTORY path) prepends source path to make directory path.

2011-01-21 Thread John Drescher
I am getting a the following error: CREATING X:/32Bit/VC.90/Qt/StudyManager/bin/Debug/sqldrivers CMake Error at CMake/GetQtRuntime.cmake:21 (file): file problem creating directory: X:/CMakeBased/Qt/StudyManager/X:/32Bit/VC.90/Qt/StudyManager/bin/Debug/sqldrivers Call Stack (most recent call

Re: [CMake] FILE( MAKE_DIRECTORY path) prepends source path to make directory path.

2011-01-21 Thread John Drescher
You don't need those backslashes there. Try: file( MAKE_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}/${Release}/sqldrivers ) That solved the issue. The reason for my error (besides the headache that I have at the moment) was that I copied the line from the the next line in the macro which needs to put

Re: [CMake] problem with ADD_SUBDIRECTORY always inheriting all settings

2011-02-01 Thread John Drescher
On Tue, Feb 1, 2011 at 5:36 PM, Maarten Nieber hallomaar...@yahoo.com wrote: Hi John, thanks, but that only works one level deep, right? If you have a structure A - B - C, then C will always inherit all of A, regardless of where in B's CMakeList you put the ADD_SUBDIRECTORY. No it depends

Re: [CMake] Accessing visual studio debugger options

2011-02-09 Thread John Drescher
On Wed, Feb 9, 2011 at 2:30 PM, Robert Bielik robert.bie...@xponaut.se wrote: Louis Hoefler skrev 2011-02-09 19:41: Hello everyone, i created cmake files for a visual studio solution. The solution compiles, and now I want to start debugging the testapplication. I want to change the command

Re: [CMake] multiple directories in one variable

2011-02-11 Thread John Drescher
On Fri, Feb 11, 2011 at 9:16 AM, Ilja Golshtein ilej...@narod.ru wrote: Hello! I use a product which (depending on installation type) can keep headers in several directories. What is the best way to specify these directories? Do I have better option than variables

Re: [CMake] multiple directories in one variable

2011-02-11 Thread John Drescher
it is what I want. But how? How can I put all the directories in EXTERNAL_PRODUCT_INCLUDES from cmake command line? I do not know. Sorry. I did not see that you were trying to add these via the command line. I never use that mode of cmake. John

Re: [CMake] Naive (stupid?) question

2011-02-17 Thread John Drescher
   apologies for the stupid question. I have a large project and at times a change triggers unexpected consequences, i.e. very large recompilations, rebuild of the cmake makefiles and so on. Is there a way in cmake to understand why things happens? I mean which chain of dependencies causes

<    1   2   3   4   5   6   >