[CMake] Configuring output directory for ui_* and moc_* files
Hello Following problem: I'd like to configure CMake to place the uis and the mocs of Qt in a specific directory (thus not cluttering up my source trees). Is there an easy way to achieve this? Of course I then have to specifiy where those files are for the build to no fail... My source tree looks like this: CMakeLists.txt ( add_subdirectory(sources) ) sources/ -CMakeLists.txt -include/*.hpp -src/*.cpp -ui/*.ui -generated/ (this is where I'd like to place the mocified headers and uis [as an example]) Thanks for any hints/sources/info Peter ___ 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/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Configuring output directory for ui_* and moc_* files
Zitat von Peter von Niederhaeusern pvonn...@gmail.com: Following problem: I'd like to configure CMake to place the uis and the mocs of Qt in a specific directory (thus not cluttering up my source trees). Is there an easy way to achieve this? Of course I then have to specifiy where those files are for the build to no fail... http://www.cmake.org/Wiki/CMake_FAQ#What_is_an_.22out-of-source.22_build.3F HS ___ 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/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Compaq Visual Fortran
Arjen Markus wrote: f90.exe /compile_only -IF:\plplot-svn\plplot\bindings\f77\strutils.f Compaq Visual Fortran has an option /include or /I or -I but also an option /iface:keyword or -IF:keyword. In this particular constellation it is interpreting the options in the wrong manner! Instead of -I F:\plplot-svn\... it interprets the option as -IF:\plplot-svn\plplot\... I am not sure if there are other compilers (except Intel Fortran) that use an optional colon to separate option name from the keyword, but the issue is wider than just this one: What happens if someone puts the sources in a directory whose name contains a space, like: c:\my documents\my sources\ ? It will be quoted or converted to the windows shortpath format which never has spaces. CMake quotes only when necessary (see below). The documented way to change the include path flag to -I instead of just -I is: set(CMAKE_INCLUDE_FLAG_C -I ) set(CMAKE_INCLUDE_FLAG_CXX -I ) Reading the source, I see there is an undocumented way to force quoting of include paths: set(CMAKE_QUOTE_INCLUDE_PATHS 1) One of the above should be added to the compiler information file for Compaq. Shouldn't all file names and directory names be properly delimited? Quoting on windows is a PITA because programs receive one big command line string from the operating system on startup. Most programs just let the runtime library parse the string to produce argv[] and call main, but some tools get the command line string and parse it themselves. -Brad ___ 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/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Compaq Visual Fortran
Hi Brad, thanks for this detailed explanation. I will try again with these amendments. (I detest the introduction of spaces in directory names and file names. It messes up all manner of things! Yes, you are right, quotes won't solve the issue.) Regards, Arjen On 2010-02-16 16:12, Brad King wrote: Arjen Markus wrote: f90.exe /compile_only -IF:\plplot-svn\plplot\bindings\f77\strutils.f Compaq Visual Fortran has an option /include or /I or -I but also an option /iface:keyword or -IF:keyword. In this particular constellation it is interpreting the options in the wrong manner! Instead of -I F:\plplot-svn\... it interprets the option as -IF:\plplot-svn\plplot\... I am not sure if there are other compilers (except Intel Fortran) that use an optional colon to separate option name from the keyword, but the issue is wider than just this one: What happens if someone puts the sources in a directory whose name contains a space, like: c:\my documents\my sources\ ? It will be quoted or converted to the windows shortpath format which never has spaces. CMake quotes only when necessary (see below). The documented way to change the include path flag to -I instead of just -I is: set(CMAKE_INCLUDE_FLAG_C -I ) set(CMAKE_INCLUDE_FLAG_CXX -I ) Reading the source, I see there is an undocumented way to force quoting of include paths: set(CMAKE_QUOTE_INCLUDE_PATHS 1) One of the above should be added to the compiler information file for Compaq. Shouldn't all file names and directory names be properly delimited? Quoting on windows is a PITA because programs receive one big command line string from the operating system on startup. Most programs just let the runtime library parse the string to produce argv[] and call main, but some tools get the command line string and parse it themselves. -Brad ___ 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/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Setting Link Library Dependencies Flag in VS 2005
http://www.mail-archive.com/cmake@cmake.org/msg13565.html Was there ever a work around found for this issue (raised back in May 2008)? I'm trying to do the same kind of thing: I want to have a static library that contains symbols from other static libs so that the end product I deliver to my customer is a single library instead of 10 separate libraries. It looks like if I could just set the LinkLibraryDependencies flag in a vcproj file to true, my problem would be solved. I've tried a few things and haven't been able to get anything to work yet. Any help is appreciated. Thanks! -James This message contains information which is confidential and privileged. Unless you are the addressee (or authorized to receive for the addressee), you may not use, copy or disclose to anyone the message or any information contained in the message. If you have received the message in error, please advise the sender by reply e-mail and delete the message. ___ 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/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Single-shot compilation
On systems that support it, I'm wanting to do the equivalent of: $(CC) -pipe source1.cpp source2.cpp source3.cpp -fwhole-program I can't figure out how to tell CMake to pass multiple sources to the compiler at once. (Using versions 2.6 and 2.8) - Oliver ___ 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/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake