[CMake] Bundling Qt5 with CMake on Linux

2018-10-08 Thread Andreas Pakulat
Hi, I'm currently trying to find a good approach to bundling Qt5 with my application on Linux using CMake (and CPack to create tar.gz). It appears this topic isn't covered very well - or I'm using the wrong search keywords. What I have right now is copying the different plugins that are needed by

Re: [CMake] CMake 3.7.1 gui fails to launch

2017-01-06 Thread Andreas Pakulat
Hi, On Fri, Jan 6, 2017 at 6:41 PM, wrote: > As it turns out, no, I can't use Qt5. In fact, I'd love to hear from anyone > who actually has. I find this in Modules/FindQt.make: That module is specifically only for applications wanting to support Qt3 and Qt4 at the same time. > ==

Re: [CMake] CMake 3.7.1 gui fails to launch

2017-01-06 Thread Andreas Pakulat
Hi, On Fri, Jan 6, 2017 at 4:41 PM, wrote: > CMake suite maintained and supported by Kitware (kitware.com/cmake). > daryl@eve-ldb:~/cmake/cmake-3.7.1$ cmake-gui > cmake-gui: symbol lookup error: cmake-gui: undefined symbol: > _ZN9QListData11detach_growEPii > == > > That looks like a Qt l

Re: [CMake] Compile shared library and call it's functions

2016-03-07 Thread Andreas Pakulat
Hi, On Mon, Mar 7, 2016 at 9:29 PM, Ivan wrote: > Hello! > > Here is my CMakeLists.txt: > > cmake_minimum_required(VERSION 3.3) > project(untitled19) > > set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") > > set(LIBRARY_SRC library.cpp) > > add_library(libra SHARED ${LIBRARY_SRC}) > > set(SOU

Re: [CMake] globs case sensitivity depends on platform

2016-01-28 Thread Andreas Pakulat
Hi Jan, On Thu, Jan 28, 2016 at 4:52 PM, 🐋 Jan Hegewald wrote: > Hi Andreas, > > > On 28.01.2016, at 16:43, Andreas Pakulat wrote: > > > > Hi Jan, > > > > On Thu, Jan 28, 2016 at 2:35 PM, 🐋 Jan Hegewald > wrote: > > Hi Nils, > >

Re: [CMake] globs case sensitivity depends on platform

2016-01-28 Thread Andreas Pakulat
Hi Jan, On Thu, Jan 28, 2016 at 2:35 PM, 🐋 Jan Hegewald wrote: > Hi Nils, > > > On 28.01.2016, at 13:39, Nils Gladitz wrote: > > > > You might already be aware but CMake discourages using GLOB for source > files > > yes, I read the docs before posting (: > Avoiding glob would be a workaround to

Re: [CMake] getting the rpath right on osx

2015-11-02 Thread Andreas Pakulat
Hi, On Mon, Nov 2, 2015 at 4:26 PM, Clinton Stimpson wrote: > On Monday, November 02, 2015 04:08:55 PM Andreas Pakulat wrote: > > Hi, > > > > On Mon, Nov 2, 2015 at 2:49 PM, Boudewijn Rempt > wrote: > > > On Mon, 2 Nov 2015, Andreas Pakulat wrote: > > &

Re: [CMake] getting the rpath right on osx

2015-11-02 Thread Andreas Pakulat
Hi, On Mon, Nov 2, 2015 at 2:49 PM, Boudewijn Rempt wrote: > On Mon, 2 Nov 2015, Andreas Pakulat wrote: > > I think the idea of using @rpath as install name of the Qt libraries is >> geared towards the usecase >> of shipping Qt within the application bundle of the applica

Re: [CMake] getting the rpath right on osx

2015-11-02 Thread Andreas Pakulat
Hi, On Mon, Nov 2, 2015 at 10:26 AM, Boudewijn Rempt wrote: > I checked the manual and the blog post about rpath on osx, but I'm still > confused, and still not getting it right... > > I build and installed Qt 5.6 alpha like this: > > ./configure -prefix /Users/boudewijnrempt/kf5/i > > Then I ma

Re: [CMake] CMAKE_BUILD_TYPE and exact control of compiler options

2015-10-12 Thread Andreas Pakulat
Hi, On Mon, Oct 12, 2015 at 10:39 AM, René J. V. wrote: > Hello, > > I'm using cmake in conjunction with a packaging/distribution system that > aims to > control the compiler and linker flags, a priori via the usual environment > variables. (We're talking about MacPorts.) > > Using one of the CM

Re: [CMake] Prefix header for Makefiles

2015-08-26 Thread Andreas Pakulat
Hi, On Wed, Aug 26, 2015 at 3:10 PM, Jakob van Bethlehem < jsvanbethle...@gmail.com> wrote: > Hej Andrew, > > CMake does never scan source files (as far as I know), as it is not a > compiler. From your question it almost seem you are making this assumption, > so I just wanted to make sure to ment

Re: [CMake] Packaging debug symbol files on Windows

2015-07-27 Thread Andreas Pakulat
Hi Nils, On Mon, Jul 27, 2015 at 3:58 PM, Nils Gladitz wrote: > On 07/27/2015 03:46 PM, Andreas Pakulat wrote: > >> I've meanwhile also noticed that the default compiler flags that CMake >> uses include the debug information in the dll itself (dll size is >> doubled

Re: [CMake] Packaging debug symbol files on Windows

2015-07-27 Thread Andreas Pakulat
Hi Nils, On Mon, Jul 27, 2015 at 3:12 PM, Nils Gladitz wrote: > On 07/27/2015 02:25 PM, Andreas Pakulat wrote: > >> Hi, >> >> I'm trying to generate a zip file (on Windows) for a shared library >> including the generated debug symbols in pdb files with CPa

[CMake] Packaging debug symbol files on Windows

2015-07-27 Thread Andreas Pakulat
Hi, I'm trying to generate a zip file (on Windows) for a shared library including the generated debug symbols in pdb files with CPack. Unfortunately CPack does not seem to pick up the pdb files all by itself and after cross-reading the cpack docs in the cmake wiki I didn't see any switch to enable

Re: [CMake] Where do all the extra clang flags come from in Xcode?

2015-05-18 Thread Andreas Pakulat
Hi Paul, On Mon, May 18, 2015 at 3:20 PM, Paul Smith wrote: > On Mon, 2015-05-18 at 12:32 +0200, Ruslan Baratov via CMake wrote: > > This table tells you what attribute you need to set to disable/enable > > specific warning. > > I see, so these are CMake attributes? That wasn't clear to me. I

Re: [CMake] Unexpected use of "ld" on Windows

2015-02-11 Thread Andreas Pakulat
Hi, On Wed, Feb 11, 2015 at 3:16 PM, Arjen Markus wrote: > Hello, > > I am trying to build the Fortran interface to NetCDF4 on Windows, using > the Intel Fortran compiler and "Nmake Makefiles" as the generator (see > http://www.unidata.ucar.edu/downloads/netcdf/index.jsp). > > I had some trouble

Re: [CMake] Tweak CMake project to include non-buildable files in the CodeBlocks project file

2015-01-12 Thread Andreas Pakulat
Hi Nils, On Mon, Jan 12, 2015 at 11:50 AM, Nils Gladitz wrote: > On 01/12/2015 11:40 AM, Andreas Pakulat wrote: > >> Ah, that works. Its a little ugly in the CMake files but I guess I can >> live with that. Ideally I was hoping to simply have a 'complete' list >

Re: [CMake] Tweak CMake project to include non-buildable files in the CodeBlocks project file

2015-01-12 Thread Andreas Pakulat
Hi, On Sun, Jan 11, 2015 at 10:55 PM, Dario Oliveri wrote: > It is very simple for each of the files you want to include in the build > (I use txt example so that you know it can work for arbitrary types): > > --- > set_source_files_properties( comment.txt PROPERTIES HEADER_FILE_ONLY true) > ---

[CMake] Tweak CMake project to include non-buildable files in the CodeBlocks project file

2015-01-11 Thread Andreas Pakulat
Hi, I'm using QtCreator with CMake and have several files that are included in targets depending on the platform on which I build. Files that are not enabled on the current platform will not be included by CMake in the CodeBlocks file which in turn is used by QtCreator. Since QtCreator only pick

Re: [CMake] make target export file follow symlinks (or something better?)

2014-08-23 Thread Andreas Pakulat
Hi, On Sat, Aug 23, 2014 at 8:12 AM, Nico Schlömer wrote: > Hi all, > > I'm linking my shared library against > ``` > /usr/lib/x86_64-linux-gnu/libhdf5.so -> libhdf5.so.7.0.0 > /usr/lib/x86_64-linux-gnu/libhdf5.so.7 -> libhdf5.so.7.0.0 > /usr/lib/x86_64-linux-gnu/libhdf5.so.7.0.0 > ``` > resulti

Re: [CMake] Mac bundled application with multiple executables.

2014-02-09 Thread Andreas Pakulat
Hi Bill, On Sun, Feb 9, 2014 at 8:45 PM, Bill Somerville wrote: > Hi, > > noob here so firstly thanks for the great build tools! > > I'm struggling with shoehorning a Win32/Linux Qt GUI application into > CMake for those targets and for OS-X. > > At the moment the Mac build is manually transforme

[CMake] custom command with non-zero exit code?

2014-01-23 Thread Andreas Pakulat
Hi, I have a custom command to copy over some javascript files from the source to the build tree and along with that run them through a javascript lint tool. The main point of the lint is to catch syntax errors and the like early on. Unfortunately the lint tool also reports all kinds of warnings

Re: [CMake] boostrap error - borked cmConfigure.h [v2.8.12.1]

2014-01-10 Thread Andreas Pakulat
Hi, On Fri, Jan 10, 2014 at 9:42 PM, SzilĂĄrd PĂĄll wrote: > Indeed, I did (accidentally) download the .zip package. I was rather > annoyed that the bootstrap script did not have executable permission > set, but it did not ring a bell... Thanks guys! > > Just for curiosity: > - what *nix tool does

Re: [CMake] boostrap error - borked cmConfigure.h [v2.8.12.1]

2014-01-10 Thread Andreas Pakulat
Hi, On Fri, Jan 10, 2014 at 2:16 PM, SzilĂĄrd PĂĄll wrote: > Found a workaround: > $ find /tmp/cmake-2.8.12.1 -type f | xargs dos2unix > > This must be a bug, should I file a report? > Did you use the .zip file of the CMake sources? That one is intended to be used for Windows and hence contains W

Re: [CMake] Provide 64bit Linux binaries

2014-01-08 Thread Andreas Pakulat
Hi, On Wed, Jan 8, 2014 at 10:07 PM, Magnus Therning wrote: > On Wed, Jan 08, 2014 at 01:56:22PM +0100, Andreas Pakulat wrote: > > Hi, > > > > I know this has been raised in the past, but I don't think the > > arguments for not providing the binaries are strong en

[CMake] Provide 64bit Linux binaries

2014-01-08 Thread Andreas Pakulat
Hi, I know this has been raised in the past, but I don't think the arguments for not providing the binaries are strong enough to warrant the hassle a cmake user has to go through to run the 32bit binaries on a 64bit Linux distribution. I think requiring users to figure out how to install 32bit co

Re: [CMake] Cannot set CMP0022 to OLD

2013-12-14 Thread Andreas Pakulat
Hi, On Sat, Dec 14, 2013 at 2:58 PM, Stephen Kelly wrote: > Andreas Pakulat wrote: > > > Anyway, I've now stripped it down as much as I can (without diving into > > the wilderness of FindKDE4Internal) and also added the observations I've > > made while strip

[CMake] Cannot set CMP0022 to OLD

2013-12-12 Thread Andreas Pakulat
Hi, I've been quite annoyed by the warnings from CMP0022 in a project I use ( http://quickgit.kde.org/?p=kdevplatform.git) and wanted to set the policy to OLD to hide the warnings (porting the code is not an option as that would require to enforce CMake 2.8.11 which is too new for this project).

Re: [CMake] Proper behaviour and use of CMAKE_INSTALL_* variables

2013-12-09 Thread Andreas Pakulat
Hi, On Mon, Dec 9, 2013 at 3:50 PM, Mojca Miklavec < mojca.miklavec.li...@gmail.com> wrote: > Dear list members, > > I often like or need to install two versions of the same software. > Ideally the software should put its files by default to > $prefix/include/$NAME/*.h > $prefix/lib/$NAME

Re: [CMake] Qt4 QT_INSTALL_LIBS

2013-11-14 Thread Andreas Pakulat
Hi, On Thu, Nov 14, 2013 at 11:45 AM, Lars Lars wrote: > Using CMake 2.8.10 on Windows 7. > > We have a working project that finds QT liket this: > FIND_PACKAGE(Qt4 4.7.1 COMPONENTS QtCore QtGui) > > Now we would like to update Qt library, so changed it to: > FIND_PACKAGE(Qt4 4.8.4 COMPONENTS Qt

Re: [CMake] Transitive linking and static libraries

2013-10-17 Thread Andreas Pakulat
Hi James, On Thu, Oct 17, 2013 at 6:58 PM, James Bigler wrote: > It doesn't seem to work. > > I can't use target_link_libraries on an imported target. > > add_library(imported_lib STATIC IMPORTED GLOBAL) > set_target_properties(imported_lib PROPERTIES IMPOARTED_LOCATION > "${imported_lib_locatio

Re: [CMake] Empty CPack variables

2013-10-06 Thread Andreas Pakulat
Hi, On Sun, Oct 6, 2013 at 10:13 PM, Pau Garcia i Quiles wrote: > Hello, > > I am using CMake 2.8.11.2 on Windows to build and package some software. > If I do this, it works fine: > >set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Wt binary build") >set(CPACK_PACKAGE_VENDOR "emweb bvba") >set

[CMake] DeployQt4.cmake on MacOSX with commandline utilities

2013-09-16 Thread Andreas Pakulat
Hi, I'm wondering wether I'm overlooking something with DeployQt4.cmake or wether its not prepared to handle commandline utilities using Qt (and Qt plugins). I'm having a server-like app which uses networking and the sqlite plugin and when trying to install it the INSTALL_QT4_EXECUTABLE macro see

Re: [CMake] Separate compile flags for ASM/C compilers and lists

2013-09-16 Thread Andreas Pakulat
Hi, On Mon, Sep 16, 2013 at 10:24 AM, Nikolay wrote: > > On 14 September 2013 09:59, Alexander Neundorf wrote: > >> On Friday 13 September 2013, lorddoskias wrote: >> > Hello list, >> > >> > I have a couple of questions whose answers I couldn't find. So first >> > thing's first - I have the foll

Re: [CMake] Componentized Packaging with TGZ generator

2013-09-13 Thread Andreas Pakulat
Hi Eric, On Fri, Sep 13, 2013 at 5:02 PM, Eric Noulard wrote: > 2013/9/13 Andreas Pakulat : > > Hi, > > > > I'm having a bit of an issue with the behaviour of the TGZ generator and > > componentized packagings. The generation of the packages for the various >

[CMake] Componentized Packaging with TGZ generator

2013-09-13 Thread Andreas Pakulat
Hi, I'm having a bit of an issue with the behaviour of the TGZ generator and componentized packagings. The generation of the packages for the various components works just fine, but unfortunately the contents are not as I'd like them to be. It seems like the TGZ generator drops the 'common' prefi

Re: [CMake] Confusion with include() relativity

2013-09-05 Thread Andreas Pakulat
Hi, On Fri, Sep 6, 2013 at 12:26 AM, Robert Dailey wrote: > I have an interesting structure for my code & build scripts: > > root/ > source/ > CMakeLists.txt > build/ > CMakeLists.txt > cmake/ > common.cmake > > My root CMakeLists.txt is actually in 'root/source/build", and

Re: [CMake] Building CMake with Qt5

2013-09-04 Thread Andreas Pakulat
Hi, On Thu, Sep 5, 2013 at 12:22 AM, Jacky Alciné wrote: > On Wed September 4 2013 1.14.17 PM Tanweer Rashid wrote: > > Hi, > > > > I am trying to build CMake 2.8.11 on my 64 bit Ubuntu 12.04. I am trying > to > > use QT5.1, but CMake is saying that Qt is not correctly installed. > > > > I am wo

Re: [CMake] Makefile doesn't automatically create executable path as Ninja

2013-09-03 Thread Andreas Pakulat
Hi, On Tue, Sep 3, 2013 at 7:41 PM, Felipe Menezes Machado wrote: > On Tue, Sep 3, 2013 at 2:33 PM, Matthew Woehlke < > matthew.woeh...@kitware.com> wrote: > >> On 2013-09-03 13:21, Felipe Menezes Machado wrote: >> >>> I'm having trouble understanding this behavior: what happens if the >>> direct

Re: [CMake] installation paths and generated source files

2013-08-19 Thread Andreas Pakulat
Hi, On Mon, Aug 19, 2013 at 6:23 PM, Magnus Hagdorn wrote: > Hi there, > I have the following problem with cmake: > > I would like to set the installation path for plugins to be > ${LIB_INSTALL_DIR}/${PROJECT_**NAME}. As I understand it, the > LIB_INSTALL_DIR is relative to CMAKE_INSTALL_PREFIX i

Re: [CMake] FindOpenSSL always uses system libs

2013-08-14 Thread Andreas Pakulat
Hi, On Wed, Aug 14, 2013 at 8:06 PM, Josef 'Jeff' Sipek wrote: > If you have a (linux or solaris) system with openssl installed in /usr and > a > second copy installed elsewhere (e.g., /opt) and you want a cmake project > to > find the elsewhere version, no matter what you try it finds the system

Re: [CMake] Debug problem with component install

2013-07-31 Thread Andreas Pakulat
Hi, On Wed, Jul 31, 2013 at 10:52 PM, Eric Noulard wrote: > 2013/7/31 Andreas Pakulat : > > Hi, > > > > On Sat, Jul 27, 2013 at 12:39 AM, Andreas Pakulat wrote: > >> > >> Hi, > >> > >> I'm having a project here where cmake refu

Re: [CMake] Debug problem with component install

2013-07-31 Thread Andreas Pakulat
Hi, On Sat, Jul 27, 2013 at 12:39 AM, Andreas Pakulat wrote: > Hi, > > I'm having a project here where cmake refuses to recognize the "COMPONENT" > option for the install() command for certain targets. > > Within the project there are several subdirs, the

[CMake] Debug problem with component install

2013-07-26 Thread Andreas Pakulat
Hi, I'm having a project here where cmake refuses to recognize the "COMPONENT" option for the install() command for certain targets. Within the project there are several subdirs, the top-level CMakeLists.txt has a component-install rule like this: INSTALL(DIRECTORY ${PROJECT_BINARY_DIR}/doc/html

Re: [CMake] How to set environment variable for custom command

2013-07-19 Thread Andreas Pakulat
Hi, On Fri, Jul 19, 2013 at 4:37 PM, Nicolas DesprĂšs wrote: > Hi, > > In Unix shell we can do that: > $ VAR=foo cmd in out > > This way the environment variable is only set in the environment of the > process of the command and not the in current shell like when using the > "export" built-in. >

Re: [CMake] Linking error while trying to include an external library to a CMAKE project

2013-04-28 Thread Andreas Pakulat
Hi, On Sun, Apr 28, 2013 at 4:36 PM, maaschn wrote: > I currently try to add an external dynamiced linked library (dll) to my > cmake > project. I have got the .dll and the .lib file. I spent a lot of time to > find an answer by myself but I didn't manage to find the solution. The > include work

Re: [CMake] default CONFIGURATIONS in cygwin

2013-04-27 Thread Andreas Pakulat
Hi, On Sat, Apr 27, 2013 at 8:06 AM, Lloyd wrote: > Hi, > > I am studying to compile an application using CMake in Cygwin. I am > installing a file using the install command based on the value of > CONFIGURATIONS variable. > > May I know the default configuration (debug, release) in cygwin > > I

Re: [CMake] Superbuild subprojects and find_package()

2013-04-17 Thread Andreas Pakulat
Hi, On Thu, Apr 18, 2013 at 5:38 AM, John Gallagher < johnkgallagher+cm...@gmail.com> wrote: > Hello all, > > Some Googling has led me to questions that have been asked that are > similar to this one but I haven't seen a definitive answer. I'm trying to > set up a CMake "superbuild" where there

Re: [CMake] Installing Python files

2013-03-26 Thread Andreas Pakulat
Hi, Am Dienstag, 26. MĂ€rz 2013 schrieb sandrews : > Hi, > > My project is primarily C and C++, but also includes some Python code. I > can get everything to build fine, and my CMakeLists.txt files uses the > INSTALL(TARGETS ...) to so that the user can install the compiled code to > the proper p

Re: [CMake] Support for -D prefixed compiler flags

2013-02-19 Thread Andreas Pakulat
Hi, On Wed, Feb 20, 2013 at 6:39 AM, Patrick McMunn wrote: > I'm not 100% sure this is a cmake bug or if this is even the place to report > it, but I ran into a bug as described here: > http://www.gccxml.org/Bug/view.php?id=11069 It seems that cmake gives an > error when checking the compiler fla

Re: [CMake] Checking for Specific TR1 Headers

2013-01-23 Thread Andreas Pakulat
Hi, On Wed, Jan 23, 2013 at 5:17 PM, Michael Jackson wrote: > I am trying to determine if certain TR1 Headers are available to the > compiler. My first test system is an OS X 10.6.8 system using the built in > GCC. Here is the pertinent parts of my CMake file: > > macro (CORE_CHECK_INCLUDE_FIL

Re: [CMake] ADD_CUSTOM_TARGET

2013-01-16 Thread Andreas Pakulat
Hi, On Wed, Jan 16, 2013 at 11:01 PM, wrote: > The problem is that the script fails when using cmake 2.6. I want to know > if this is expected or a bug ? > > I filed a bug report with Red-Hat 6, but they just decided to ignore it. See > https://bugzilla.redhat.com/show_bug.cgi?id=896116

Re: [CMake] retreiving the libraries the maven way?

2013-01-14 Thread Andreas Pakulat
Hi, On Mon, Jan 14, 2013 at 9:17 AM, Nicolas Herbaut wrote: > I started working on a new c++ project comming back after 4+ years of java > coding. > > For java, I use nexus, which is a binary repository server, that provides an > nice REST API that allows clients to download dependencies by provi

Re: [CMake] Building a library for both C and C++

2013-01-09 Thread Andreas Pakulat
Hi, On Wed, Jan 9, 2013 at 1:17 AM, kgardenia42 wrote: > I am trying to write a CMakeLists.txt where the same source files are > compiled separately to both a C library and a C++ library. > > So, lets say I have foo.c, bar.c and baz.c and I would like to build > mylib.a and mylib++.a > > My intui

Re: [CMake] How to import platform-independent library with add_library()?

2012-12-14 Thread Andreas Pakulat
Hi, On Fri, Dec 14, 2012 at 11:16 AM, Reza Housseini wrote: > Hello Guys > > I try to import a library and was now wondering if there's a > platform-independent way? Not in the sense that CMake would handle this for you magically. At least not when importing libraries that are not shipping with

Re: [CMake] Library locations returned by find_package() and find_library()

2012-12-06 Thread Andreas Pakulat
Hi, On Thu, Dec 6, 2012 at 5:13 PM, Mateusz Loskot wrote: > The CMake 2.8.10 manual includes the following statement in the paragraph > about link_directories() command: > > "Library locations returned by find_package() and find_library() are > absolute paths." > > Would it be possible to include

Re: [CMake] how to add_library with an already compiled lib in a zip file ?

2012-11-28 Thread Andreas Pakulat
Hi, On Wed, Nov 28, 2012 at 1:41 PM, Martin Koller wrote: > Hi, > > I'm struggling with the following requirement: > I have a lib stored in a zip file (the lib is not built via cmake, e.g. > delivered from external company). > > I want a target to link against this lib and want to extract the li

Re: [CMake] target_link_libraries fails dependencies

2012-11-14 Thread Andreas Pakulat
Hi, On Wed, Nov 14, 2012 at 12:34 PM, Andrea Galeazzi wrote: > I'm using cmake_policy(SET CMP0015 NEW) to link external libraries (I don't > have the sources of them) in order to avoid to specify the absolute path of > each library. So I wrote the following commands: > link_directories(path1 path

Re: [CMake] How clean generated build system files

2012-11-03 Thread Andreas Pakulat
Hi, On Sat, Nov 3, 2012 at 12:40 PM, lzprgmr wrote: > Is there any way to clean the generated build system files, like vs project > files, make files, it might be ok if generate out-of-place, but for in-place Thats why cmake advertises out of source builds to be used all the time. > files, it i

Re: [CMake] Automoc for ui files?

2012-10-31 Thread Andreas Pakulat
Hi, On Wed, Oct 31, 2012 at 12:02 AM, David Doria wrote: > I just learned about automoc, and it is fantastic! I have been able to > get rid of all of my manual QT4_WRAP_CPP calls. Is there a similar way > to get rid of my QT4_WRAP_UI calls? They are equally as bulky to write > out manually :) No

Re: [CMake] Multiple executables per project?

2012-10-28 Thread Andreas Pakulat
Hi, On Sun, Oct 28, 2012 at 10:09 PM, Rui Maciel wrote: > I'm developing a software package which consists of a GUI application and a > command line program. Both programs share common libraries, and essentially > they only differ in which UI components each program uses. > > I would like to use

Re: [CMake] cmake trouble

2012-10-22 Thread Andreas Pakulat
Hi, On Mon, Oct 22, 2012 at 6:04 PM, Eric Clark wrote: > > First off, you cannot call both add_executable and add_library in the same > CMakeLists file. I think there's something missing here, but its perfectly possible to have one or more library and executable targets specified in the same cma

Re: [CMake] Continue install after a failure

2012-10-20 Thread Andreas Pakulat
Hi, On Sat, Oct 20, 2012 at 11:39 AM, Petr Kmoch wrote: > when running the install step of a CMake-generated buildsystem (i.e. 'make > install' or building the VS project INSTALL), the run terminates after the > first failure (e.g. when it cannot find a file which is to be installed). Is > there

Re: [CMake] Automatic building app version if any one of the dependency is changed.

2012-10-17 Thread Andreas Pakulat
Hi, On Wed, Oct 17, 2012 at 9:02 PM, Vivek Goel wrote: > Hi, > I am buidilng 5 binary using cmake. > Currently I am using svn source code version as app version for the > application but it does not scale enough because if any file changed it > force building of all the binary. > Is there a way I

Re: [CMake] QT4_WRAP_CPP and Implicit Dependencies

2012-10-12 Thread Andreas Pakulat
Hi, in addition to that, moc does not support ifdef'ing of code it needs to look at (it does not have a preprocessor at all, only knows a few select define's), so there can also not be a case of Dum.h setting defines which cause moc to generate different code for Main.h. I'd say qmake is just too

Re: [CMake] How to incorporate Subversion libraries into my project?

2012-10-10 Thread Andreas Pakulat
Hi, I've once written a find-module for subversion for KDE's kdevelop, you can look/download it via http://quickgit.kde.org/index.php?p=kdevplatform.git&a=blob&h=208b63bf40937d7752d1210c81d056b54e70ff37&hb=19c3711103575d389fca90dff0f28bf7fb8a0dad&f=cmake%2Fmodules%2FFindSubversionLibrary.cmake It

Re: [CMake] Question about find package in Module mode

2012-10-09 Thread Andreas Pakulat
Hi, On Tue, Oct 9, 2012 at 5:39 PM, Fabio Fracassi wrote: > On 10/9/12 5:05 PM, Andreas Pakulat wrote: > On Tue, Oct 9, 2012 at 4:42 PM, Fabio Fracassi > What do you mean with "package registry" here? > > It means the package registry where cmake stores previously build

Re: [CMake] Question about find package in Module mode

2012-10-09 Thread Andreas Pakulat
Hi, On Tue, Oct 9, 2012 at 3:46 PM, Fabio Fracassi wrote: > Hello, > > I am using find_package in Module mode for a Library that is also build > using cmake. > The Library is build in a way that it can be used both from the build dir, > and from the installed location. > > When using find_package

Re: [CMake] How to check the operating system is MacOSX?

2012-09-15 Thread Andreas Pakulat
Hi, On Sat, Sep 15, 2012 at 12:46 PM, Loaden wrote: > http://www.cmake.org/Wiki/CMake_Useful_Variables > >> UNIX is TRUE on all UNIX-like OS's, including Apple OS X and CygWin WIN32 >> is TRUE on Windows, including CygWin APPLE is TRUE on Apple systems. Note >> this does not imply the system is

Re: [CMake] Scanning dependencies of target slowness weirdness.

2012-09-10 Thread Andreas Pakulat
Hi, On Mon, Sep 10, 2012 at 6:12 PM, Yuri Timenkov wrote: > Or it's implementation on Linux... I doubt anybody had any problems with > NTFS on Windows :) Actually people do have problems with that, but since there's basically no competitor you don't have a choice. And Microsoft has no reason to

Re: [CMake] CMake can't find the correct Qt installation paths

2012-09-07 Thread Andreas Pakulat
Hi, as Michael said, don't move Qt around. In fact Qt itself does not support this at all, so a Qt installation that is moved after the install process and without re-running the patching or a writing a qt.conf file is to be considered a broken Qt installation. It'll also not find plugins etc. it

Re: [CMake] Bug? add_custom_command() ignores head file outputs

2012-08-24 Thread Andreas Pakulat
Hi, On Fri, Aug 24, 2012 at 7:27 PM, Adam B wrote: > Hello all, > > I'm relatively new to CMake but I've encountered some unexpected behavior. > Perhaps it's by design or perhaps it's a bug - you tell me. The short story > is this: It is a bug, but not in CMake, its in your cmake code. > It ap

Re: [CMake] cmake-gui's separation between configuration & generation

2012-08-23 Thread Andreas Pakulat
Hi, On Thu, Aug 23, 2012 at 8:20 PM, Robert Dailey wrote: > On Thu, Aug 23, 2012 at 1:12 PM, Andreas Pakulat wrote: >> Hi, >> >> On Thu, Aug 23, 2012 at 5:48 PM, Robert Dailey >> wrote: >>> On Thu, Aug 23, 2012 at 10:43 AM, John Drescher >&g

Re: [CMake] cmake-gui's separation between configuration & generation

2012-08-23 Thread Andreas Pakulat
Hi, On Thu, Aug 23, 2012 at 5:48 PM, Robert Dailey wrote: > On Thu, Aug 23, 2012 at 10:43 AM, John Drescher wrote: >>> Is the separation between configuration & generation really necessary >>> for cmake-gui? I ask because several of my co-workers are confused >>> between the differences in the t

Re: [CMake] Total cmake newbie needs some help

2012-08-18 Thread Andreas Pakulat
Hi, On Sat, Aug 18, 2012 at 12:16 AM, Edgar wrote: > I've already looked at the cmake tutorial, and it isn't that great. It > starts really simple but then goes into really complex things that most > people might not even use. > > Also, there is currently no such thing as 'The Openlayer community

Re: [CMake] Mac debugging: provide a local FindX11.cmake?

2012-08-16 Thread Andreas Pakulat
Hi, Am Donnerstag, 16. August 2012 schrieb Randolph M. Fritz : > I'm having problems find_package(X11) on Mac, and I'd like to provide a > local FindX11.cmake so I can try alternatives without altering my cmake > install. Is there any easy way to do that? You can simply set CMAKE_MODULE_PATH t

Re: [CMake] CMake is unable to find QtCore!

2012-08-13 Thread Andreas Pakulat
Hi, On Mon, Aug 13, 2012 at 9:40 PM, Toronto Andrew wrote: > > Andreas Pakulat-2 wrote >> >> Relocating Qt requires either patching the qmake binary or installing >> a qt.conf file to help qmake find the libs in the new position. The >> absolute include/lib dirs are

Re: [CMake] How to suppress output like "-- Checking whether C ", etc.?

2012-08-13 Thread Andreas Pakulat
Hi, you can't tell cmake to do this and usually you don't want to either. These are status messages indicating what cmake is using so you can easily spot if cmake chose the wrong compiler or found a library in a place where you didn't expect it. To suppress all non-error output you can do: cmake

Re: [CMake] How to force cmake to run on a different source directory?

2012-08-13 Thread Andreas Pakulat
Hi, On Mon, Aug 13, 2012 at 9:48 PM, Peng Yu wrote: > Hi, > > The following directory has 'cmake ../src1' run before. I get the > following error when I run the following command. One way to solve the > problem is to run "rm -rf *", but I'm wondering if there is a way to > force cmake to run even

Re: [CMake] CMake is unable to find QtCore!

2012-08-13 Thread Andreas Pakulat
Hi, On Mon, Aug 13, 2012 at 4:16 PM, Toronto Andrew wrote: > Haha spot on mate. > > I did so. To rectify, I reinstalled VTK and CMake, fixed the PATH var and > the QTDIR. Relocating Qt requires either patching the qmake binary or installing a qt.conf file to help qmake find the libs in the new p

Re: [CMake] CMake 2.8.8 : Reproducible Crash in Mac OS X 10.8

2012-08-07 Thread Andreas Pakulat
Hi, On Wed, Aug 8, 2012 at 7:32 AM, Jerry Krinock wrote: > Hello, > > I have been using CMake for a couple years, invoked from a script, to build > an Xcode project in Mac OS X. Most recently, I have successfully used CMake > 2.8.7 on Mac OS X 10.7. > > Upon upgrading to CMake 2.8.8 and Mac OS

Re: [CMake] Relink to shared libs

2012-08-03 Thread Andreas Pakulat
Hi, On Fri, Aug 3, 2012 at 8:41 PM, Leif Walsh wrote: > This is sort of the point of shared libs though, you can update them without > relinking everything on your system, unless you're doing something really > brain-damaged. Actually no, adding new public API, changing existing API in compati

Re: [CMake] user defined search path for find_package

2012-07-31 Thread Andreas Pakulat
Hi, On Tue, Jul 31, 2012 at 6:25 PM, rainman110.de wrote: > Hello together, > > this is my first post to this mailing list as I am a new cmake user and > trying to learn it. I already posted the message but somehow it was not > accepted by nabble... > > I have a multiplatform project which requir

Re: [CMake] Disabling C for C++-only projects

2012-07-25 Thread Andreas Pakulat
Hi, On Wed, Jul 25, 2012 at 10:06 PM, Johannes Zarl wrote: > Hi, > > Out of curiosity (and thinking about saving a couple of seconds during the > first cmake run) I tried just to use C++ as language for some KDE program. Really? Seconds? I mean the toolchain-stuff in CMake is more or less hardco

Re: [CMake] find dynamic libs

2012-07-12 Thread Andreas Pakulat
Hi, On Thu, Jul 12, 2012 at 6:12 PM, Yixun Liu wrote: > Hi, > I am using FIND_PACKAGE(Qt4 REQUIRED) in the CMakeLists to find Qt libs. > QT_LIBRARIES gives me QtGui, QtSql and QtCore, which are static libs. > How do you know that? Whats the actual content of the variable? Which platform are you

Re: [CMake] Using the -C option to cmake

2012-06-29 Thread Andreas Pakulat
Hi, On Fri, Jun 29, 2012 at 2:44 PM, Christian Arnault wrote: > Hi, > > I wanted to factor out some initial stuff of my CMakeLists.txt that I > systematically include. > > typically I include the following lines at the beginning of all my > CMakeLists.txt: > > cmake_minimum_required(VERSION 2.8)

Re: [CMake] Python version specification in FindPythonInterp is ignored

2012-06-26 Thread Andreas Pakulat
Hi, Am Dienstag, 26. Juni 2012 schrieb Ateljevich, Eli : > Hi Andreas, > Thanks. This must be what is happening. The references I saw to > CMAKE_PREFIX_PATH suggested it was environment-only and needs to be known > "at cmake time". That didn't fit my needs well and even though it seemed > funny I

Re: [CMake] Trying to compile cmake with local copy of ncurses library

2012-06-25 Thread Andreas Pakulat
Hi, On Tue, Jun 26, 2012 at 12:14 AM, Sohail Shafii wrote: > I'm sorry but I don't quite understand the first sentence in your > response. How would I run my locally-built cmake "for the cmake sources"? > Do you mean try to use cmake to generate a makefile for the cmake sources? > Yes, exactly,

Re: [CMake] Trying to compile cmake with local copy of ncurses library

2012-06-25 Thread Andreas Pakulat
Hi, On Mon, Jun 25, 2012 at 11:48 PM, Sohail Shafii wrote: > Thanks. What it is apparently doing is including the argument: > -I/home/***/local/include/ncurses. It should be -I/home/***/local/include. > I'm not sure why it generates the former during the bootstrap/configuration > phase. > > The p

Re: [CMake] Python version specification in FindPythonInterp is ignored

2012-06-25 Thread Andreas Pakulat
Hi, On Mon, Jun 25, 2012 at 11:20 PM, Ateljevich, Eli wrote: > Actually, clearing the cache worked for FindPythonInterp but I still can’t > get FindPythonLibs.cmake to work. Same problem 
. it can find the 2.4 > version but not the 2.7 version – and gives an error when 2.7 is required. > Obvious

Re: [CMake] Trying to compile cmake with local copy of ncurses library

2012-06-25 Thread Andreas Pakulat
Hi, On Mon, Jun 25, 2012 at 11:25 PM, Sohail Shafii wrote: > Hi, > > [ 49%] Building C object > Source/CursesDialog/form/CMakeFiles/cmForm.dir/fld_arg.c.o > In file included from > /home/***/src/cmake-2.8.8/Source/CursesDialog/form/form.priv.h:34, > from > /home/***/src/cmake-2.8

Re: [CMake] make a project also a subproject

2012-06-22 Thread Andreas Pakulat
Hi, On Fri, Jun 22, 2012 at 6:10 PM, Leif Walsh wrote: > Suppose I have two projects, A and B. A builds a shared lib that links > with a static lib in B. > > Sometimes, I want to build and test B by itself. Other times I want to > build A, which requires building B. > > For now, I manually (or

Re: [CMake] find_path() to search include path failed

2012-06-21 Thread Andreas Pakulat
Hi, On Fri, Jun 22, 2012 at 6:33 AM, hce wrote: > > Andreas Pakulat-2 wrote > > > > You can find extensive explanation where find_path works on the different > > platforms in the CMake documentation: > > http://cmake.org/cmake/help/v2.8.8/cmake.html#command:find_pa

Re: [CMake] find_path() to search include path failed

2012-06-21 Thread Andreas Pakulat
Hi, On Thu, Jun 21, 2012 at 1:07 PM, hce wrote: > Hi, > > I am running 2.8.8 on Linux. I have a library already been set up in > environment, I can see it in both LD_LIBRARY_PATH and $PATH, but when I was > compiling another source code which calling find_path() to check the > library > package

Re: [CMake] CMAKE_CURRENT_SOURCE_DIR showing up in include directories

2012-06-08 Thread Andreas Pakulat
Hi, On Fri, Jun 8, 2012 at 3:14 AM, Robert Dailey wrote: > I think I might know what it is... > > I do the following: > > include_directories( Z ) > add_library( A ) > include_directories( A ) # Include "A"'s include directory > add_library(B) # B depends on A, and thus includes its header direct

Re: [CMake] find_library setting search path order

2012-06-06 Thread Andreas Pakulat
Hi, On Wed, Jun 6, 2012 at 5:40 PM, vivek goel wrote: > I am using following command to find pcre library > > SET(CMAKE_LIBRARY_PATH "${CMAKE_SOURCE_DIR}/lib/linux/gcc/${BIT}/lib") > All compiled library are located in > ${CMAKE_SOURCE_DIR}/lib/linux/gcc/${BIT}/lib > > find_library(PCRE_LIBRARY

Re: [CMake] Windows 260 Char Limit Hit with CPack

2012-05-20 Thread Andreas Pakulat
Hi, On Mon, May 21, 2012 at 6:14 AM, David A. Alexander wrote: > > We are running CPack remotely through Jenkins [1] to end up running a > build/package process on a Windows 2008 Server machine and are seeing > errors during the install into the _CPack_Packages directory because file > paths exce

Re: [CMake] Fwd: module and cmake

2012-05-19 Thread Andreas Pakulat
Hi, On Sat, May 19, 2012 at 3:44 PM, Rolf Eike Beer wrote: > > > > But to have some useful information: set CMAKE_PREFIX_PATH to the path > > > where the libraries can be found without the lib/ or include/ suffix, > > > CMake will add them itself. > > > > > > So if you have fftw2 in /opt/fftw2/li

Re: [CMake] How to handle a submodule existing twice in a project?

2012-05-17 Thread Andreas Pakulat
Hi, On Thu, May 17, 2012 at 11:36 PM, David Doria wrote: > Why are you doing that? If TestB is always available as sub-dir under >> TestA it doesn't make much sense to also add it as a subdirectory of the >> parent of TestA - IMHO. Test/CMakeLists.txt can still use all targets from >> TestB, sin

Re: [CMake] How to handle a submodule existing twice in a project?

2012-05-17 Thread Andreas Pakulat
Hi, On Thu, May 17, 2012 at 11:20 PM, David Doria wrote: > I have a main project (called Test) that has two submodules, TestA and > TestB. TestA also has a submodule, which is exactly the same TestB. > > So there is a directory Test/TestB as well as Test/TestA/TestB > > In TestA/CMakeLists.txt,

  1   2   3   4   5   6   7   >