[CMake] Fwd: CMAKE_INSTALL_PREFIX

2009-03-18 Thread John Drescher
All, On Wed, Mar 18, 2009 at 1:20 PM, John Drescher wrote: >> It seems the following works (at least the cmake_install.cmake >> commands appear to get generated appropriately). >> >> FILE(TO_CMAKE_PATH "${CMAKE_INSTALL_PREFIX}" CMAKE_INSTALL_PREFIX) >>

Re: [CMake] CMAKE_INSTALL_PREFIX

2009-03-18 Thread John Drescher
> Here is what I do for Program Files > > string (REPLACE "\\" "/" PGM_FILES $ENV{PROGRAMFILES}) > > then I use PGM_FILES and there is no complaint about bad escape sequences. > BTW, here is the whole section: IF(WIN32) #The following command changes \ to / in the Program Files Path so CMake will

Re: [CMake] CMAKE_INSTALL_PREFIX

2009-03-18 Thread John Drescher
On Wed, Mar 18, 2009 at 1:43 PM, George Neill wrote: > Hi All, > >  On windows, I pass CMAKE_INSTALL_PREFIX on the command line e.g. > "-DCMAKE_INSTALL_PREFIX=c:\some\path".  In my cmake code I use > variable which contain the suffixes  /lib, /man/man1 etc... > > The install commands end up lookin

Re: [CMake] [vtkusers] compiling issues

2009-03-18 Thread John Drescher
On Wed, Mar 18, 2009 at 3:28 AM, Oliver Kania wrote: > I think using Cmake implies having to manually add the names of new files > etc. to the Cmake file, doesnt it ? Whenever the project changes, I have to > "regenerate" the visual studio solution. I do not consider this to be > convenient. > It

Re: [CMake] VS2005 all headers are excluded

2009-03-13 Thread John Drescher
> Is this causing issues with the building of your project? Or is it just ugly > to look at? > Bill, I am not the OP but I use cmake 2.6.3 since it was released with vs2005 but for me I can not see any difference besides the ugly symbol in the solution explorer. John _

Re: [CMake] VS2005 all headers are excluded

2009-03-13 Thread John Drescher
> cmake 2.6.3. > There has been a number of modifications which have caused all headers in the > generated project files .vcproj to be excluded frm build > (the red minus sign next to the file in Solution explorer) > > I have searched from inside VStudio the string HEADER_ONLY (ignoring case) in

Re: [CMake] Boost CMakeification progress?

2009-03-13 Thread John Drescher
On Fri, Mar 13, 2009 at 3:09 PM, John Drescher wrote: > On Fri, Mar 13, 2009 at 3:08 PM, John Drescher wrote: >>> Will standard releases of Boost >>> contain CMakeLists files in my lifetime? >> >> They do already. 1.38.0 did. Although I did not have goo

Re: [CMake] Boost CMakeification progress?

2009-03-13 Thread John Drescher
On Fri, Mar 13, 2009 at 3:08 PM, John Drescher wrote: >> Will standard releases of Boost >> contain CMakeLists files in my lifetime? > > They do already. 1.38.0 did. Although I did not have good success > building it that way. > Here is a link to the release notes (look a

Re: [CMake] Boost CMakeification progress?

2009-03-13 Thread John Drescher
> Will standard releases of Boost > contain CMakeLists files in my lifetime? They do already. 1.38.0 did. Although I did not have good success building it that way. John ___ Powered by www.kitware.com Visit other Kitware open-source projects at http:/

Re: [CMake] Non existent / new file handling

2009-03-13 Thread John Drescher
On Fri, Mar 13, 2009 at 1:39 PM, Alexander Neundorf wrote: > On Friday 13 March 2009, John Drescher wrote: >> Is there a way to have cmake automatically create empty missing source >> files instead of failing? > > No, there is not. > >> Basically I when I need to a

Re: [CMake] Non existent / new file handling

2009-03-13 Thread John Drescher
On Fri, Mar 13, 2009 at 1:15 PM, Denis Scherbakov wrote: > > John, > > You may want to look into ADD_CUSTOM_COMMAND. > > > PROJECT(CORBASAMPLE) > > ADD_CUSTOM_COMMAND( >  OUTPUT "${PROJECT_BINARY_DIR}/MyMicoGeneratedSource.cpp" >  COMMAND "${MICO_IDL_EXECUTABLE}" --hh-suffix=h

[CMake] Non existent / new file handling

2009-03-13 Thread John Drescher
Is there a way to have cmake automatically create empty missing source files instead of failing? Basically I when I need to add new files I add new entries to my CMakeLists.txt file then I have to go to the shell and touch on each file I add so that cmake will not fail to regenerate the project.

Re: [CMake] Build install from command line Visual Studio

2009-03-03 Thread John Drescher
This worked for me inside the folder containing the sln file and running from a Visual Studio 2005 command prompt. X:\VC.80\Lung\QtBasicUtils>devenv QtBasicUtils.sln /build Debug /project INSTALL Microsoft (R) Visual Studio Version 8.0.50727.762. Copyright (C) Microsoft Corp 1984-2005. All right

Re: [CMake] Why the ui_header.h can not be found in Qt project when I add a share lib?

2009-01-20 Thread John Drescher
On Tue, Jan 20, 2009 at 1:12 PM, Kermit Mei wrote: > Clinton Stimpson wrote: >> >> How about using ${GUI_UIS} instead of ${SAMPLE_UIS}, which is undefined. >> >> Clint > > Hmm, thank you. I had repired some erros, and the GUI.so can be created. > > But the new troubles come: > You do not appear t

Re: [CMake] Visual Studio build question

2009-01-12 Thread John Drescher
On Mon, Jan 12, 2009 at 3:27 PM, James Bigler wrote: > So when I have a project that builds a library (call it libprovides) and I > have another project that uses that library (libuses), CMake creates a build > dependency between the two projects. I can see them when I open the Project > Dependen

Re: [CMake] File modification detection based on content (not timestamp)

2009-01-07 Thread John Drescher
On Wed, Jan 7, 2009 at 5:19 PM, John Drescher wrote: >> ### QUESTIONS ### >> 1. Is file modification detection based on file content instead of >> timestamp supported already? >> 2. Is support for it planned? >> If not, i would like to make a feature request!

Re: [CMake] File modification detection based on content (not timestamp)

2009-01-07 Thread John Drescher
> ### QUESTIONS ### > 1. Is file modification detection based on file content instead of > timestamp supported already? > 2. Is support for it planned? > If not, i would like to make a feature request! > 3. How hard would it be to implement that? > I could be totally wrong but doesn't CMake have no

Re: [CMake] Headers for VC project files

2008-10-29 Thread John Drescher
On Wed, Oct 29, 2008 at 7:07 PM, Powei Feng <[EMAIL PROTECTED]> wrote: > Hi, > This is probably yet another noob question. When I use > cmake to generate Visual Studio project files, only the > sources (cpp's) show up in the project. Is there a flag I > can set to include the headers (h's) as wel

Re: [CMake] Copying directories and build error

2008-09-04 Thread John Drescher
> Then you're not copying the buildtree, but the source tree. The > buildtree is the directory containing all the files generated by CMake > and the make/your-ide-buildtool runs. > Your correct and when I reread the OP they did not want to run cmake again. Sorry for wasting peoples time.. John ___

Re: [CMake] Copying directories and build error

2008-09-04 Thread John Drescher
On Thu, Sep 4, 2008 at 11:11 AM, Andreas Schneider <[EMAIL PROTECTED]> wrote: > On Thursday 04 September 2008 16:57:18 Bill Hoffman wrote: >> You don't CMake does not support the relocation of build trees. > > http://www.cmake.org/Wiki/CMake_FAQ#Why_does_CMake_use_full_paths.2C_or_can_I_copy_my_bui

Re: [CMake] Bug? Broken header files in Visual C++ 2008 project

2008-08-28 Thread John Drescher
> What about those of us that do not want the header files compiled (no > pre-compiled headers, etc.), but still want the folders to show up in Visual > Studio (or any other IDE)? > That is how it works in my example. John ___ CMake mailing list CMake@cm

Re: [CMake] cmake vista tutorial?

2008-08-28 Thread John Drescher
On Thu, Aug 28, 2008 at 12:10 AM, Craig Miller <[EMAIL PROTECTED]> wrote: > I've read good things about cmake and would like to start using it. I spent > the afternoon reading the online tutorials and trying to get a simple hello > world c++ project setup and running. I started with the documenta

Re: [CMake] Bug? Broken header files in Visual C++ 2008 project

2008-08-27 Thread John Drescher
> I don't know how helpful saying this will be, but it works for me, at > least for CMake 2.6.1 and VS 2008 Express. My same project also builds > unchanged for 2005 Professional and 2003 Professional, and the headers > even end up in the right project folders by default (I don't use source > grou

Re: [CMake] windows command to compile

2008-08-25 Thread John Drescher
On Mon, Aug 25, 2008 at 9:57 AM, Ingrid Kemgoum <[EMAIL PROTECTED]> wrote: > my generator is visual 8 2005. > i check for devenv on the net and never get a devenv.exe or .com like > described in FAQs or error report. > i only got a .zip with a batch file (.bat) and a devenv.jar > > is it normal? >

Re: [CMake] Qt-Sources and non Qt-Source

2008-08-12 Thread John Drescher
On Tue, Aug 12, 2008 at 11:48 AM, Jan Dinger <[EMAIL PROTECTED]> wrote: > Thats right. So, I ignore this. > > Can I disable this warning in my release version? This warning looks not so > good. > Yes. The warning is that you are unnecessarily running moc on that file. If you are not going to derive

Re: [CMake] Qt-Sources and non Qt-Source

2008-08-12 Thread John Drescher
On Tue, Aug 12, 2008 at 11:40 AM, Jan Dinger <[EMAIL PROTECTED]> wrote: > >> Your path is wrong for the header file. It should be ./src not .src >> >> John > > Sorry my fault. Ok now it works fine, but I got a waring: > > ### snip ### > /home/jan/workspace/cpp/autoluncher/src/xmlhandler/xmlhandler.

Re: [CMake] Qt-Sources and non Qt-Source

2008-08-12 Thread John Drescher
On Tue, Aug 12, 2008 at 11:24 AM, Jan Dinger <[EMAIL PROTECTED]> wrote: > Hello folks, > > I've a CMakeLists.txt, this file works fine. Now I've added a small wrapper, > this wrapper is no Qt-Code (no Q_OBJECT flag). How can I merge this in my > CMakeLists.txt? > > make crashes with the this error:

Re: [CMake] generating VC projects

2008-08-01 Thread John Drescher
> I have Cmake set up to generate project files for VC6. This works > fine. The project can only be compiled with the VC6 compiler because > of legacy code. > > What I am interested in is to know if it is possible to generate a VC > 7,8,9 project using CMake, which will use the VC6 compiler ? Basic

Re: [CMake] FW: cmake newbie questions

2008-07-28 Thread John Drescher
> You are using the visual studio generator or it would not be creating a dsw. >Use the "Unix Makefiles" generator instead. > My guess is that he is trying to use both the visual studio generator to make a visual studio project to edit the source code in and then run the make file generator to

Re: [CMake] FW: cmake newbie questions

2008-07-23 Thread John Drescher
On Wed, Jul 23, 2008 at 10:01 PM, Phil Smith <[EMAIL PROTECTED]> wrote: > Thanks...that's a good suggestion; I think I've done it, but I'm at that > point where I *think* I've done everything, and may have gone in circles. > > How do I tell it "It's a make build" without using the GUI? There must

Re: [CMake] CMake, ITK, VTK, and Qt 4

2008-05-28 Thread John Drescher
> This question involves the interaction of several different toolkits during > the CMake configuration process, so I apologize if this is the wrong venue. > I'm receiving the error: > > "Warning: CMake is forcing CMAKE_CXX_RELEASE_FLAGS to "/MD /O2 /Ob2 /DNDEBUG > -DQT_NO_DEBUG" to match that impo

Re: [CMake] Issues with VS2005 Pro, CMake 2.4.8, Win XP, ParaView

2008-05-23 Thread John Drescher
> Also, to embellish on my last email, I used the dependencywalker > utility to discover that the MSVCR80.dll could not be found. I don't > really know where to look for it either. (VS Newbie).. > That is because it is hidden in cryptic folders off your windows install: C:\WINXP\WinSxS\x86_Microso

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread John Drescher
> I know for a fact that this is not correct. I have written my own > single windows applications that have a gui and a console and it is a > .exe. Link the gui application with subsystem console. > Ok. I found what I do. I have a post build step (in a vc6 project .dsp) that changes the subsyste

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread John Drescher
On Wed, May 14, 2008 at 9:20 AM, PCJohn <[EMAIL PROTECTED]> wrote: > Dear cmakers, > > I really need to set executable extension to .com instead to standard .exe > (using MSVC). Is it possible to do that, or do I need to not use cmake for > win32 platform? > > Reasons: > I planned to port Invent

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread John Drescher
> What are the flags used in MSVC to create a .com file? > I assume you need a very old version of msvc to support 16 bit compiles. Microsoft compilers have not supported this since version 4.X I believe which was more than 10 years ago. John ___ CMake

[CMake] moc not being run successfully (every time) in Visual Studio 2003

2008-04-22 Thread John Drescher
I am running CMake-2.7.2008.04.21 and under Visual Studio moc does not run correctly all the time for my QT4 projects. Here is the error: -- Build started: Project: LungAnalysis, Configuration: Debug Win32 -- Generating qrc_LungAnalysis.cxx Generating moc_textwidget.cxx moc: Cannot open

<    1   2   3   4   5   6