Re: [CMake] Linking error with VS2005

2010-05-21 Thread John Drescher
On Fri, May 21, 2010 at 8:01 AM, Daanen Vincent wrote: > Dear Cmake users, > > I'm facing to a problem I can't resolve. > I'm developping on a windows XP SP3 box with Visual Studio 2005. > > I have a project using itk which compile fine. > For  some reason, I try to use cmake to generate the "same

Re: [CMake] Linking error with VS2005

2010-05-21 Thread John Drescher
led by the same > compiler version? > Yes, all my libs and application are built with VS2005 compiler > > V > > >> -Message d'origine- >> De : John Drescher [mailto:dresche...@gmail.com] >> Envoyé : vendredi 21 mai 2010 14:29 >> À : Daanen Vincent &g

Re: [CMake] CMake hidden files

2010-06-06 Thread John Drescher
> I tried to install PV on Windows XP with MinGV, without any success. > So I decided to go with Visual Studio 10 Express, installed it, selected it > as a generator, etc > But I get an error message, something like "it seems that you try to build > on VS with Qt built on MinGW". > Ok, right, so I

Re: [CMake] Building multiple releases for a visual studio project

2010-06-08 Thread John Drescher
On Tue, Jun 8, 2010 at 2:52 PM, Torri, Stephen CIV NSWCDD, W15 wrote: > I was wondering if it was possible to have a CMake project that builds a > Microsoft Visual Studio Project produce an NSIS installer for each kind of > build (e.g. debug, release, RelWithDebug). Right now I can build the pro

Re: [CMake] [vtkusers] VTK 5.6.0 Cmake Errors

2010-06-17 Thread John Drescher
On Thu, Jun 17, 2010 at 3:16 PM, Scott Johnson wrote: > On a whim I totally changed the path to a different drive and naming > structure and tried again.  I was able to fully configure and generate the > solution.  Even after I set the options I was originally trying. > > I'm not sure where it w

Re: [CMake] One last try

2010-06-21 Thread John Drescher
> 1. Is cmake supposed to support Visual Studio 2008 out of the box? Yes and it works well. I use this combination every day for the last 2 years. John ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/o

Re: [CMake] How set "Build Name" in CTest/CDash?

2010-06-21 Thread John Drescher
> The old-fashioned way of doing this is to set a BUILDNAME variable in the > cmake cache... > > In your CMakeLists.txt: > set(BUILDNAME "myBuildName" CACHE STRING "build name variable for CDash") > > The new-fashioned way is to set CTEST_BUILD_NAME in your ctest -S script > prior to ctest_configur

Re: [CMake] One last try

2010-06-21 Thread John Drescher
On Mon, Jun 21, 2010 at 9:59 AM, Gerry Weaver wrote: > Hello All, > Thank you for your replies. > The cmake command fails when trying to compile the test file. It says it > cannot find kernel32.lib. I can compile and link without cmake just fine. > Any ideas? > Thanks, > -G Try running the build

Re: [CMake] Generating a combined x86 and x64 Visual Studio project

2010-07-01 Thread John Drescher
> I have recently created a CMake project that I use to generate Visual Studio > solutions/projects and it works perfectly with one exception. > > > > After generating a Visual Studio 9 2008 Win64 solution, the solution > contains only the x64 build specification.  Is it possible to have CMake add

Re: [CMake] Different configurations with Visual Studio

2010-07-05 Thread John Drescher
> I see, thanks. I intend to write a Python script that adds the extra > platform solution, because we really need that. Visual Studio and > Code::Blocks project files are XML files, so it shouldn't be too hard. > What is wrong with different build folders for each compiler / ide? John __

[CMake] Upgraded to cmake-2.8.2 on windows7 and now it will not work

2010-07-06 Thread John Drescher
I was using 2.8.1 and previous cmake versions for a long time without any problems. Also 2.8.2 works for the same project on 64 bin xp. CMake Error: CMake was unable to find a build program corresponding to "Visual Studio 8 2005". CMAKE_MAKE_PROGRAM is not set. You probably need to select a diff

Re: [CMake] Upgraded to cmake-2.8.2 on windows7 and now it will not work

2010-07-06 Thread John Drescher
On Tue, Jul 6, 2010 at 12:50 PM, John Drescher wrote: > I was using 2.8.1 and previous cmake versions for a long time without > any problems. Also 2.8.2 works for the same project on 64 bin xp. > > CMake Error: CMake was unable to find a build program corresponding to > "

Re: [CMake] Building a Version Header

2010-07-07 Thread John Drescher
On Wed, Jul 7, 2010 at 9:44 PM, Clark Gaebel wrote: > I would like to generate file that looks something like this: > >    // version.h >    #define VERSION "v0.1-345-ga77ede8" > > where the version string is the result of running "git describe --tags > --dirty". How can I auto-generate this file,

Re: [CMake] Building a Version Header

2010-07-07 Thread John Drescher
> 1) I'm using git I know. You have some work to do.. On top of the minor differences in what you want the FindGIt.cmake does not have that option to return the version so you need to adapt it to get the git version similar to the way the FindSubversion.cmake module does for subversion repositorie

Re: [CMake] Building a Version Header

2010-07-07 Thread John Drescher
On Wed, Jul 7, 2010 at 10:59 PM, Clark Gaebel wrote: > Is there any way I can use the output from a command-line program (in > this case, "git describe --dirty") instead of using FindGit? > I believe add_custom_command but I can not help with an example of that. John ___

Re: [CMake] Building a Version Header

2010-07-07 Thread John Drescher
On Wed, Jul 7, 2010 at 11:04 PM, John Drescher wrote: > On Wed, Jul 7, 2010 at 10:59 PM, Clark Gaebel wrote: >> Is there any way I can use the output from a command-line program (in >> this case, "git describe --dirty") instead of using FindGit? >> > > I b

Re: [CMake] Building a Version Header

2010-07-07 Thread John Drescher
On Wed, Jul 7, 2010 at 11:43 PM, Clark Gaebel wrote: > Okay, I've almost got it. How do I make configure_file generate > something like... > > source: > #cmakedefine VERSION > Some thing like Version.h.in #define VERSION "@PROJECT_VERSION@" Try to look at my first example for usage. John

Re: [CMake] Building a Version Header

2010-07-07 Thread John Drescher
> Nice. that works. I'm so sorry to be such a bother, but here's my output > now... > > #define PROJECT_VERSION "v0.1-345-ga77ede8-dirty > " > > Needless to say, that's bad :( > > How would I go about removing that trailing newline? > STRING(REGEX REPLACE on the PROJECT_VERSION in your CMakeLists

Re: [CMake] Building a Version Header

2010-07-07 Thread John Drescher
On Wed, Jul 7, 2010 at 11:58 PM, John Drescher wrote: >> Nice. that works. I'm so sorry to be such a bother, but here's my output >> now... >> >> #define PROJECT_VERSION "v0.1-345-ga77ede8-dirty >> " >> >> Needless to say, that'

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 10:16 AM, Verweij, Arjen wrote: > > Hi, > > > > I’m trying a little F90 example on Windows with cmake. Apparently something > is amiss, but I can’t find much on Google about it; at least not about this > particular case. > > > > All I do is cmake ..\f90example and the fol

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 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 just fine. >

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 t

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 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 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 I'm following exactly

[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 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 CMakeFile.txt it w

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 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 www.kitware.com Visit other Kitware

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 similarl

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 wrote: > On Thu, Jul 22, 2010 at 10:41 PM, John Drescher 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 the

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 fina

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 http://www

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 sta

[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 wrote: >>> I know that target_link_libraries can be used to link a .lib , >>> >>> but how to link a .dll into the pro

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 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 get CMake to sto

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 wrote: > On Mon, Jul 26, 2010 at 7:07 PM, David Cole 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 CMAKE_GENERATOR MATCHES "Visual Studio") >

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 wrote: > On Mon, Jul 26, 2010 at 9:00 PM, John Drescher 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 configs.

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 wrote: > On Mon, Jul 26, 2010 at 10:12 PM, David Cole 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 >> questions that you were trying to do it a

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 wrote: > On Mon, Jul 26, 2010 at 10:31 PM, John Drescher 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 >> for multipl

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

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

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 > cma

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

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 va

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

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 p

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 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 your syntax

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 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 >> should

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 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  ADD_EXECUTABL

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 wrote: > On Sat, Jul 31, 2010 at 9:05 AM, 1+1=2 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_m

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 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 an inherited pro

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

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 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 2.8.2 on WinXP x64, Boo

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 a

Re: [CMake] Boost lib error when linking executable

2010-08-24 Thread John Drescher
>. I guess those 32.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 K

Re: [CMake] several questions about cmake

2010-08-26 Thread John Drescher
On Thu, Aug 26, 2010 at 6:47 AM, Hickel, Kelly 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] several

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 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 looking for a way of

Re: [CMake] Debugging CMAKE_SIZEOF_VOID_P

2010-08-31 Thread John Drescher
On Tue, Aug 31, 2010 at 12:17 PM, John Drescher wrote: > On Tue, Aug 31, 2010 at 12:01 PM, U.W. Mechatronics Lab > 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 Win

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 Serv

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. Joh

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 fil

Re: [CMake] cpack/nsis behavior

2010-09-03 Thread John Drescher
On Fri, Sep 3, 2010 at 4:36 PM, John Drescher 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

Re: [CMake] cpack/nsis behavior

2010-09-03 Thread John Drescher
> I see that behavior too. > So I see this commit introduce that behavior > > > And the intention was to "only install/remove the minimal >  number of files when re-run to update the installation (or by clicki

Re: [CMake] Windows 64 bit version?

2010-09-05 Thread John Drescher
On Sun, Sep 5, 2010 at 1:26 PM, David Doria 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 executable will work fi

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 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 uses the de

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 d

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 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 the one project

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

2010-09-22 Thread John Drescher
> I know I'll be heartily flamed for even suggesting this, but the way I > work with VS is to shut it down (or at least close the solution file), run > cmake or cmake-gui by hand outside of Visual Studio, and then open up the > sln file again with VS. This avoids the problem you're reporting,

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 th

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 s

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 wrote: > On Thu, Sep 30, 2010 at 5:42 PM, James Bigler 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 error means a file (traversal.c) is mi

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 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 http://www.kitware.com/opensource/opensource.ht

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 wrote: > Am Friday 01 October 2010 schrieb John Drescher: >> On Thu, Sep 30, 2010 at 7:47 PM, James Bigler wrote: >> > On Thu, Sep 30, 2010 at 5:42 PM, James Bigler > wrote: >> >> I'm currently using VS 2008 6

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 f

Re: [CMake] Get configuration-dependant LOCATION property

2010-10-04 Thread John Drescher
On Mon, Oct 4, 2010 at 5:15 PM, Mateusz Loskot 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 targe

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 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

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

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 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: > /home/dagg

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 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 of the INCLUDE

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

2010-10-08 Thread John Drescher
On Fri, Oct 8, 2010 at 12:50 PM, 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 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 do have a ver

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 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 ___ Powered

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 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 add_subdirectory lines so i

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 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 other project source > dir

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 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. SET( DEMO_SRCS ./s

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

2010-10-28 Thread John Drescher
On Thu, Oct 28, 2010 at 8:23 AM, Dominik Gabi 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 wrote: >> >> Thanks. The way I understand this is that now instead of >> >> >> >> include_directories(${GTKMM_INCLUDE_DIRS}) >> >> >> >>

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

2010-10-28 Thread John Drescher
On Thu, Oct 28, 2010 at 8:29 AM, John Drescher wrote: > On Thu, Oct 28, 2010 at 8:23 AM, Dominik Gabi 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 wrote: >>> >> Thanks. The way I under

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 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 CMake 2.8.3-rc4. Th

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 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 e

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 wrote: > On Fri, Oct 29, 2010 at 8:17 PM, Karl Wallner 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: >>> ht

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 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++ files. John ___

Re: [CMake] Bug fix requests for the *next* release of CMake...

2010-11-04 Thread John Drescher
http://cmake.org/Bug/view.php?id=11206 John ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wi

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: http://stackoverflow.com/questions/1167154/listing-header-files-in-

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 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 2.6.4 installed I tri

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

2010-11-29 Thread John Drescher
On Mon, Nov 29, 2010 at 1:35 PM, tibur 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 script of vers

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 wrote: > On Mon, Nov 29, 2010 at 1:35 PM, tibur 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 doe

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 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 many hours I've s

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 librari

  1   2   3   4   5   6   >