[CMake] can I make an AUTOMOC generated file depend on something ?

2014-11-17 Thread Martin Koller
Hi, I have a project where Qt is used, so I use AUTOMOC. However I have something special: My Qt class implementation needs another (external) Qt implemented source, which I have packed as tar.bz2 file. I have a rule which shall extract the .tar.bz2 file, which works nicely. However, the AUTOMOC

[CMake] CMake Error: Qt5::moc target not found ?

2014-03-20 Thread Martin Koller
ui_automoc what does that mean ? Note that the same cmake files work well on openSuse 13.1 where I have installed Qt5 from the openSuse repository. -- Best Regards/Schöne Grüße Martin - Ing. Martin Koller , mailto:martin.kol

Re: [CMake] CMake Error: Qt5::moc target not found ?

2014-03-20 Thread Martin Koller
I'm looking for. But as said, I either specify the absolute path or I use e.g. find_host_program(QT_MOC_EXECUTABLE moc ${QTDIR}/bin NO_DEFAULT_PATH) with the option NO_DEFAULT_PATH, so CMAKE_PREFIX_PATH should not be used. On 20 Mar 2014, at 12:18, Martin Koller kol...@aon.at wrote

Re: [CMake] Configure 32 bit build in 64 bit environment from cli

2013-03-29 Thread Martin Koller
On Thursday 28 March 2013 15:03:41 Bill Hoffman wrote: On 3/28/2013 2:19 PM, Martin Koller wrote: I'm doing this with a toolchain file, so that cmake sees this as cross-compiling. E.g. I have the following toolchain file linux_i686.toolchain.cmake: # toolchain file for building

Re: [CMake] Configure 32 bit build in 64 bit environment from cli

2013-03-28 Thread Martin Koller
On Wednesday 27 March 2013 10:37:12 Nicola Mori wrote: Hello, for my project I'd like to be able to configure a 32 bit build with GCC in a 64 bit Linux environment by setting variables from command line interface. As far as I understand of CMake, this can be accomplished by setting

[CMake] How to avoid having /D _MBCS ?

2013-03-21 Thread Martin Koller
using vcxproj files ? -- Best Regards/Schöne Grüße Martin - Ing. Martin Koller , mailto:martin.kol...@etm.at , http://www.etm.at ETM professional control GmbH, A-7000 Eisenstadt Marktstr. 3 Phone:+43 2682/741-62603, Fax:+43 2682

Re: [CMake] How to avoid having /D _MBCS ?

2013-03-21 Thread Martin Koller
On Thursday 21 March 2013 15:29:18 John Drescher wrote: On Thu, Mar 21, 2013 at 10:20 AM, Martin Koller martin.kol...@etm.at wrote: In my win project, when I use the visual studio generator (64bit), I always get the /D _MBCS flag in the compiler options (started with msbuild). When I

Re: [CMake] how to get install/strip target ?

2013-03-15 Thread Martin Koller
On Wednesday 13 March 2013 22:43:01 Alexander Neundorf wrote: On Wednesday 13 March 2013, Martin Koller wrote: cmake 2.8.10, Linux: What do I need to do to have cmake creating a make install/strip target ? I guess you do have an install target ? AFAIK install/strip should be always

Re: [CMake] how to get install/strip target ?

2013-03-15 Thread Martin Koller
On Friday 15 March 2013 15:25:13 Eric Noulard wrote: 2013/3/15 Martin Koller martin.kol...@etm.at: On Wednesday 13 March 2013 22:43:01 Alexander Neundorf wrote: On Wednesday 13 March 2013, Martin Koller wrote: cmake 2.8.10, Linux: What do I need to do to have cmake creating a make

[CMake] how to get install/strip target ?

2013-03-13 Thread Martin Koller
cmake 2.8.10, Linux: What do I need to do to have cmake creating a make install/strip target ? -- Best Regards/Schöne Grüße Martin - Ing. Martin Koller , mailto:martin.kol...@etm.at , http://www.etm.at ETM professional control

[CMake] change source which does not trigger rebuild ?

2013-03-13 Thread Martin Koller
changed except the versionInfo.cxx file), rebuild the versionInfo.o file and link it to the executable Any ideas ? -- Best Regards/Schöne Grüße Martin - Ing. Martin Koller , mailto:martin.kol...@etm.at , http://www.etm.at ETM

Re: [CMake] how to get install/strip target ?

2013-03-13 Thread Martin Koller
On Wednesday 13 March 2013 22:43:01 Alexander Neundorf wrote: On Wednesday 13 March 2013, Martin Koller wrote: cmake 2.8.10, Linux: What do I need to do to have cmake creating a make install/strip target ? I guess you do have an install target ? yes. AFAIK install/strip should

[CMake] how to compile as 64bit on win

2013-03-06 Thread Martin Koller
I'm using a current developers snapshot of cmake to include the fix of http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=add8d22acc9417cb144a0b497f4f5ef330bfc680 However, a simple cmake file project(test) message(${CMAKE_SYSTEM_PROCESSOR}) always gives me x86. This is on a win8 machine and

Re: [CMake] how to compile as 64bit on win

2013-03-06 Thread Martin Koller
On Wednesday 06 March 2013 09:57:09 Koller, Martin wrote: I'm using a current developers snapshot of cmake to include the fix of http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=add8d22acc9417cb144a0b497f4f5ef330bfc680 However, a simple cmake file project(test)

[CMake] Target name not (any longer) supported

2013-03-06 Thread Martin Koller
Testing the current cmake snapshot (on win8, VS 2010) shows error messages which I did not have with the latest released cmake version: CMake Error: Error evaluating generator expression: $TARGET_PROPERTY:agent++,INTERFACE_COMPILE_DEFINITIONS Target name not supported. The target is

Re: [CMake] CMAKE_SYSTEM_PROCESSOR says x86 on Win64 - Patch

2013-02-23 Thread Martin Koller
On Saturday 23 February 2013 14:58:11 Rolf Eike Beer wrote: Martin Koller wrote: On Friday 22 February 2013 12:23:23 Koller, Martin wrote: I propose the attached patch for CMakeDetermineSystem.cmake Can someone add this to the mentioned mantis bug entry or shall I create a new one

Re: [CMake] CMAKE_SYSTEM_PROCESSOR says x86 on Win64 - Patch

2013-02-22 Thread Martin Koller
On Thursday 21 February 2013 20:46:14 Koller, Martin wrote: Hi all, I found an old cmake bug entry (see below) for the problem I have: I downloaded and installed the 32bit cmake exe on a 64bit windows and wanted to build our project as 64bit executable. However in our cmake files (which

Re: [CMake] CMAKE_SYSTEM_PROCESSOR says x86 on Win64 - Patch

2013-02-22 Thread Martin Koller
On Friday 22 February 2013 12:23:23 Koller, Martin wrote: I propose the attached patch for CMakeDetermineSystem.cmake Can someone add this to the mentioned mantis bug entry or shall I create a new one ? Revised patch which ignores the case of amd64 so that AMD64 works as well -- Best

[CMake] CMAKE_SYSTEM_PROCESSOR says x86 on Win64

2013-02-21 Thread Martin Koller
this mantis task ? Old bug entry: http://public.kitware.com/Bug/view.php?id=9065 -- Best Regards/Schöne Grüße Martin - Ing. Martin Koller , mailto:martin.kol...@etm.at , http://www.etm.at ETM professional control GmbH, A-7000 Eisenstadt

Re: [CMake] how to compile as 32bit on a 64bit Linux host ?

2013-02-19 Thread Martin Koller
On Friday 15 February 2013 16:26:39 Yngve Inntjore Levinsen wrote: Hello, On 15/02/13 15:41, Martin Koller wrote: I'm just not sure if it is enough to change the compiler flags or if there is more to change (paths etc.) I now found out that - for me - it's not enough to simply add

[CMake] how to compile as 32bit on a 64bit Linux host ?

2013-02-15 Thread Martin Koller
or is there no way ? -- Best Regards/Schöne Grüße Martin Koller - Ing. Martin Koller , mailto:martin.kol...@etm.at , http://www.etm.at ETM professional control GmbH, A Siemens Company Phone:+43 2682/741-62603, Fax:+43 2682/741-52555 A-7000

Re: [CMake] how to compile as 32bit on a 64bit Linux host ?

2013-02-15 Thread Martin Koller
file is more flexible when releasing a project, but autoconfiguring is nice when running builds on buildservers through ctest scripts. Regards, Micha On 02/15/2013 11:46 AM, Martin Koller wrote: Hi all, for the question above I found different answers on the web, so I'm puzzled

[CMake] struggling with CPack building RPMs

2012-12-20 Thread Martin Koller
The docs for COMPONENT base cpack with RPM is not clear to me, therefore a principle question: Is it possible to generate multiple rpm packages, each having its specific name, description, etc. out of one project ? I could not find a way to define e.g. the summary or description per component

Re: [CMake] Execute a custom command without any dependency

2012-12-18 Thread Martin Koller
On Monday 17 December 2012 20:04:48 Sergey Prokhorenko wrote: Hello. I want to run a custom command that parses a whole source tree, so I can't list dependencies to add_custom_command/target. Is there another way? Just always run a program, that's all. add_custom_target doc says: The target

Re: [CMake] Using gnu flux with cmake

2012-12-18 Thread Martin Koller
On Monday 17 December 2012 19:45:53 Derek Cole wrote: I am trying to figure out what I am doing wrong when trying to use just flex in a Cmake file to build a shared lib. i basically have the following find_package(FLEX) FLEX_TARGET(Test ../src/test.l ../src/test.c) set(SRC_FILES

[CMake] can I install subdirs matching a REGEX ?

2012-12-10 Thread Martin Koller
I have a directory tree, which contains a lot subtrees in different levels, all starting with .Images e.g. start/def/file1 start/def/.Images/hello start/xyz/blaa/.Images/something There are a lot .Images subdirs and they are actually extracted from a tar file. What I want is to install all those

Re: [CMake] Using cmake install target to add into svn directory

2012-12-08 Thread Martin Koller
On Friday 07 December 2012 07:37:38 Vivek Goel wrote: Hi, I am using cmake install target to copy files to directory. Is there a way I can tell cmake to automatically add destination files in svn repo ? regards Vivek Goel What about an additional install rule, e.g. install(CODE

Re: [CMake] Using cmake install target to add into svn directory

2012-12-08 Thread Martin Koller
on ) foreach(f ${SOURCES}) install(CODE execute_process(COMMAND svn add ${f})) endforeach() regards Vivek Goel On Sun, Dec 9, 2012 at 12:59 AM, Martin Koller martin.kol...@etm.atmailto:martin.kol...@etm.at wrote: On Friday 07 December 2012 07:37:38 Vivek Goel wrote: Hi, I am using cmake

[CMake] how to compile cmake itself as 64bit exe on SunOS/x86 ?

2012-12-06 Thread Martin Koller
Hi, I compiled cmake itself on SunOS/x86 I want to compile my apps in 64 bit mode, however linking with X11 does not work as cmake finds /usr/lib/libX11.so which is the 32bit version, and the 64 bit version is in /usr/lib/64/libX11.so SunOS/x86 is a 64 bit OS, but the stupid Sun CC compiler

Re: [CMake] how to compile cmake itself as 64bit exe on SunOS/x86 ?

2012-12-06 Thread Martin Koller
On Thursday 06 December 2012 20:27:27 Koller, Martin wrote: Hi, I compiled cmake itself on SunOS/x86 I want to compile my apps in 64 bit mode, however linking with X11 does not work as cmake finds /usr/lib/libX11.so which is the 32bit version, and the 64 bit version is in

Re: [CMake] error compiling 2.8.10.1 on SunOS/sparc

2012-12-05 Thread Martin Koller
On Wednesday 05 December 2012 00:11:46 Bill Hoffman wrote: On 12/4/2012 5:16 PM, Martin Koller wrote: I'm trying to compile cmake on Solaris 5.10 (uname -a: SunOS eisux111 5.10 Generic_144500-19 sun4v sparc SUNW,SPARC-Enterprise-T5120 Solaris) but I get: [ 1%] Built target

[CMake] error compiling 2.8.10.1 on SunOS/sparc

2012-12-04 Thread Martin Koller
- Ing. Martin Koller , mailto:martin.kol...@etm.at , http://www.etm.at ETM professional control GmbH, A-7000 Eisenstadt Marktstr. 3 Phone:+43 2682/741-62603, Fax:+43 2682/741-52555 - A: Because it breaks the logical

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

2012-12-01 Thread Martin Koller
On Wednesday 28 November 2012 14:40:47 you wrote: Hi Martin, you have to add a custom command to generate your lib and make your custom target depending on it: add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/xxx.a COMMAND unzip -o

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

2012-11-28 Thread Martin Koller
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 lib from the zip file only if this specific target is being built, and