[CMake] Skipping Tests if FIXTURES_SETUP is skipped

2018-05-08 Thread Jörg Kreuzberger
Hi! I'm working with the FIXTURES feature of the ctest's and find it very usefull. I want to skip certain tests if the setup test is skipped so i added a tests with SKIP_RETURN_CODE feature and set it as FIXTURES_SETUP "tty" (just calling command tty -s on unix) my assumption is that now all

Re: [CMake] CPack Multicore Usage

2017-07-24 Thread Jörg Kreuzberger
ake] CPack Multicore Usage An: Konstantin Tokarev <annu...@yandex.ru>; CC: Jörg Kreuzberger <j.kreuzber...@procitec.de>; cmake@cmake.org; >   > > In calls to cpack only one core is used if Makefiles are used. Is there any > option to enable multicore? > &g

[CMake] CPack Multicore Usage

2017-07-20 Thread Jörg Kreuzberger
Hi My Project is compiling multicore without any problems using Unix makefiles or ninja. In calls to cpack only one core is used if Makefiles are used. Is there any option to enable multicore? If i use ninja in cpack builds, the cpack build is broken, cause there seems no dependencies

Re: [CMake] cmake install behaviour with git

2015-10-01 Thread Jörg Kreuzberger
-Ursprüngliche Nachricht- Von:Nils Gladitz <nilsglad...@gmail.com> Gesendet: Do 01.10.2015 09:40 Betreff:Re: [CMake] cmake install behaviour with git An: Jörg Kreuzberger <j.kreuzber...@procitec.de>; cmake@cmake.org; > On 10/01/2015 08:35 AM, Jörg Kr

Re: [CMake] cmake install behaviour with git

2015-10-01 Thread Jörg Kreuzberger
> > > > Now install behaves differnt, cause cmake checks only file time difference. > Files previously overwritten are now > > considered Up-to-date > > Why would you want to overwrite files that have not changed? This comes from installs, there we install some configuration files with the

Re: [CMake] cmake install behaviour with git

2015-10-01 Thread Jörg Kreuzberger
> What was unclear to me is that it now sounds like you are installing two > distinct files from your repository to the same destination file rather > than re-installing a modified version of the same file. Yes, your are right i am doing exactly this > I think that is conceptually an error

[CMake] cmake install behaviour with git

2015-09-30 Thread Jörg Kreuzberger
Hi! the cmake install behaviour of files was ok for me, as long as we used svn. Now we changed to git and i have a problem now with the install behaviour. On git the timestamps of all files get the time of the clone. So files not build (e.g. configuration files, xml files etc) from the

[CMake] Code Coverage of CMake Scripts

2015-07-14 Thread Jörg Kreuzberger
Hi! i just want to get coverage information from the configure step itself to find uncovered cmake makros and scripts. The --trace option seems to be the way to do it. is there any tool/script available to get these information in a good report? BEST solution would be something like lgov or

[CMake] MinGW and sh.exe

2015-06-17 Thread Jörg Kreuzberger
Hi! i get an error at cmake configure step on windows with -G MinGW Makefiles, if the OpenSSH bin folder is in the PATH environment cause cmake detects sh.exe and then throws an error. This seems to be intended due to this link http://www.cmake.org/Wiki/CMake_MinGW_Compiler_Issues But if i now

[CMake] find_file unexpected finds

2015-05-08 Thread Jörg Kreuzberger
Hi! i have a problem with find_file, finding files in directory structures not part of the PATHS option and no other CMAKE VARIABLES relevant to find_file set. I use find_file to find external libraries in different versions, they are located in different git repos. each repo has its find

[CMake] CMP0054 and CMake Modules

2015-03-26 Thread Jörg Kreuzberger
Updated to cmake 3.2.1 from 3.0.0 and got several hints due to POLICY CMP0054 (handling of quoted variables) i set the policy to new and changed my local cmake files. But i also got a warning from CMake Modules like FindMFC.cmake (Line 39). do i make something wrong or is this an Error in

[CMake] Visual Studio Dependencies broken for custom target sln

2015-02-19 Thread Jörg Kreuzberger
Hi! I have a problem with visual studio dependencies that i actually do not understand. Perhaps you can give me an hint. I have made my libs, apps with cmake successfull and everything is fine with any SINGLE Configuration generator, even jom nmake makefiles, linux, etc. For building my apps

Re: [CMake] Visual Studio Dependencies broken for custom target sln

2015-02-19 Thread Jörg Kreuzberger
Dependency handling works with 3.2-rc1. So i will migrate. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering,

[CMake] INSTALL with FILES and generator expressions

2014-11-21 Thread Jörg Kreuzberger
Hi! i would like to install files with generator expressions. I define a variable with my qt install files. These looks like this: QT_INSTALL_FILES

Re: [CMake] INSTALL with FILES and generator expressions

2014-11-21 Thread Jörg Kreuzberger
Ok, found the issues. A little later in the script a collegue added a few lines which resolved the files with realpath. this seems to corrupt the generator expression :-) after removing those lines, everything workes as expected. Have a nice weekend. Joerg -- Powered by www.kitware.com

[CMake] Philosophy with Tests for Beginners

2014-10-16 Thread Jörg Kreuzberger
Hi! I have a question regarding handling with tests. currently my sources are build together with tests. the tests in the binary location could be executed via make test or ctest. So far so good. Considering our Jenkins / Build Configurations i want to seperate build and tests. That means i

Re: [CMake] What is the CMake equivalent for autotools make dist ?

2014-10-14 Thread Jörg Kreuzberger
Hi! This was also new to me, quite good. Question is now: i have configured cpack in my CMakeLists to use TGZ only (on linux). The binary package is made as tgz. For the source 3 packages are generated (as in your example). How could this be limited to the same as for the binaries or a

Re: [CMake] What is the CMake equivalent for autotools make dist ?

2014-10-14 Thread Jörg Kreuzberger
Ok, found it: i must set CPACK_SOURCE_TZ to off to avoid the source to be packaged as tz. its a little bit different as for the binary package, but ok. Thanks Joerg Hi! This was also new to me, quite good. Question is now: i have configured cpack in my CMakeLists to use TGZ only (on linux).

Re: [CMake] target_link_libraries on imported targets

2014-07-29 Thread Jörg Kreuzberger
Thanks, it worked like expected :-) -Ursprüngliche Nachricht- Von:Nils Gladitz nilsglad...@gmail.com Gesendet: Mo 28.07.2014 11:03 Betreff:Re: [CMake] target_link_libraries on imported targets An: Jörg Kreuzberger j.kreuzber...@procitec.de; cmake@cmake.org; On 07

[CMake] target_link_libraries on imported targets

2014-07-28 Thread Jörg Kreuzberger
Hi! i am using the cmake feature with target_link_libraries for static libraries to describe additional link dependencies from static libs e.g. to system libs and qt libraries. The cmake files is use are used for developper build and customer build, but the customer does not get all source

[CMake] Source List Compilation Depending on Configuration

2014-07-21 Thread Jörg Kreuzberger
Hi! if i want to add sources to list of compilation i can rely on CMAKE_BUILD_TYPE. E.g if i want to add a source file only for release, i append it to list of source files only then. BUT: how can i do this for multi configuration like vs? So i want to add it to the sources, so that it appears

Re: [CMake] Source List Compilation Depending on Configuration

2014-07-21 Thread Jörg Kreuzberger
on Configuration An: Jörg Kreuzberger j.kreuzber...@procitec.de; cmake@cmake.org; On 07/21/2014 11:46 AM, Jörg Kreuzberger wrote: Hi! if i want to add sources to list of compilation i can rely on CMAKE_BUILD_TYPE. E.g if i want to add a source file only for release, i append it to list of source

Re: [CMake] Source List Compilation Depending on Configuration

2014-07-21 Thread Jörg Kreuzberger
) -Ursprüngliche Nachricht- Von:Nils Gladitz nilsglad...@gmail.com Gesendet: Mo 21.07.2014 14:45 Betreff:Re: AW: [CMake] Source List Compilation Depending on Configuration An: Jörg Kreuzberger j.kreuzber...@procitec.de; CC: cmake@cmake.org; On 07/21/2014 02:29 PM, Jörg

Re: [CMake] Source List Compilation Depending on Configuration

2014-07-21 Thread Jörg Kreuzberger
Depending on Configuration An: Jörg Kreuzberger j.kreuzber...@procitec.de; CC: cmake@cmake.org; On 07/21/2014 03:19 PM, Jörg Kreuzberger wrote: 1) i reset it with set( CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS_INIT} ) set( CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE_INIT

[CMake] COMPILE_DEFINITONS Generator Expressions and MOC

2014-07-21 Thread Jörg Kreuzberger
Hi! After much help from Nils from the list i am able to use GENERATOR expressions in my compile definitions. But i end up in the moc'ing step for my qt4 files. The cmake macros QT4_WRAP_CPP generates a moc command file called moc_...cxx_parameters, that contains the generator expression

[CMake] Determine dependency between targets

2014-07-16 Thread Jörg Kreuzberger
Hi! i am looking for a way to determine REAL LINKER dependencies between an application and static libraries for use with gcc. the include dependencies and cmake dependencies are quite good to determine. For the linker is more or less the question, against which libraries i should link. This

Re: [CMake] CMake Visual Studio Configuration Single

2014-07-01 Thread Jörg Kreuzberger
I'm not sure why you would recommend anything related to CMAKE_BUILD_TYPE for the Visual Studio generators. I would be curious to know exactly how you are using it, because internally, CMAKE_BUILD_TYPE (to the best of my knowledge) is completely ignored by the Visual Studio generators. I

[CMake] CMake Visual Studio Configuration Single

2014-06-30 Thread Jörg Kreuzberger
Hi! During my migration from qmake to cmake it is pure hell for me to support the multi configuration visual studio solutions, especially for some parts like the installation steps, custom targets and so on. Most of them are because of the problem with the different build dirs in this multi

Re: [CMake] CMake Visual Studio Configuration Single

2014-06-30 Thread Jörg Kreuzberger
Nachricht- Von:J Decker d3c...@gmail.com Gesendet: Mo 30.06.2014 09:52 Betreff:Re: [CMake] CMake Visual Studio Configuration Single An: Jörg Kreuzberger j.kreuzber...@procitec.de; CC: cmake@cmake.org; ya, ignore the other types, and just set CMAKE_BUILD_TYPE

[CMake] Dependencies between static libraries

2014-05-26 Thread Jörg Kreuzberger
Hi! i had a problem between depencendies of static libraris. Due to the used tools (qt, moc, uic) a library depends on another library, especially on header files generated by uic. This is a litte bit a broken design, but cannot fix it currently. On massive parallel builds ( 8 cores on ssd )

[CMake] CMake Roadmap

2014-05-19 Thread Jörg Kreuzberger
Hi! My question: When is cmake 3.0 available for productive usage? Currently i am switching from qmake to cmake. With success, at least with many support from this mailing list. Thanks. I am currently using 2.8.12 and start now using cmake in productive environment, that means start creation

[CMake] Test Shared Library Dependencies and set_tests_properties()

2014-05-12 Thread Jörg Kreuzberger
Hi! For using tests those tests have sometimes dependencies to shared libraries, from cache and from build. For execution i therefore call set_test_properties( testname PROPERTIES ENVIRONMENT ) with LD_LIBRARY_PATH on Linux and PATH for windows. This seems to work on linux for cached entries

Re: [CMake] Test Shared Library Dependencies and set_tests_properties()

2014-05-12 Thread Jörg Kreuzberger
-Ursprüngliche Nachricht- Von:Nils Gladitz nilsglad...@gmail.com Gesendet: Mo 12.05.2014 12:14 Betreff:Re: AW: [CMake] Test Shared Library Dependencies and set_tests_properties() An: Jörg Kreuzberger j.kreuzber...@procitec.de; On 05/12/2014 11:59 AM, Jörg

[CMake] Custom Commands and Environmnt Settings for PATH and LD_LIBRARY_PATH

2014-04-11 Thread Jörg Kreuzberger
Hi! Had an issue with cmake custom commands - was able to solve it after serveral hours. But i think this is realy an issue for an improvement I. What i wanted to do: I wanted to add a simple custom command add_custom_command( OUTPUT out COMMAND mycommand ... ) mycommand

Re: [CMake] Custom Commands and Environmnt Settings for PATH and LD_LIBRARY_PATH

2014-04-11 Thread Jörg Kreuzberger
, but this will also not work. -Ursprüngliche Nachricht- Von:Nils Gladitz nilsglad...@gmail.com Gesendet: Fr 11.04.2014 12:05 Betreff:Re: [CMake] Custom Commands and Environmnt Settings for PATH and LD_LIBRARY_PATH An: Jörg Kreuzberger j.kreuzber...@procitec.de; cmake

Re: [CMake] Custom Commands and Environmnt Settings for PATH and LD_LIBRARY_PATH

2014-04-11 Thread Jörg Kreuzberger
ok, finaly got it working. Thanks for your great support. -Ursprüngliche Nachricht- Von:Nils Gladitz nilsglad...@gmail.com Gesendet: Fr 11.04.2014 13:12 Betreff:Re: AW: [CMake] Custom Commands and Environmnt Settings for PATH and LD_LIBRARY_PATH An: Jörg Kreuzberger