Re: [CMake] Considering contributing a FindPyQt.cmake module

2014-07-21 Thread Scott Kitterman
On Monday, July 21, 2014 22:41:32 Stephen Kelly wrote: > Scott Kitterman wrote: > > Given the above, I thought it would make sense to provide a new > > FindPyQt.cmake that would replace (and be backward compatible with) > > FindPyQt4.cmake that would work for both the new and old PyQt4 configure >

[CMake] How to set "Look for CMakeDetermine.cmake here"

2014-07-21 Thread David Zemon
I am attempting to build an easy-to-use build system for an embedded system. This chip uses .dat, .spin, .cogc, and .ecogc files along with .S, .c, and .cpp. I've added the necessary language files to my project path which will enable cogc (I'll get to the other file types eventually) and they

Re: [CMake] My Documents folder

2014-07-21 Thread Totte Karlsson
Hi Nils, Thanks for your reply. The installed "application" is a python module and it should not ever perform any file install/copy operations. It is an absolute requirement that the installer are able to install files into the users MyDoc folder (or even other common "system folders", sucha as

Re: [CMake] My Documents folder

2014-07-21 Thread Nils Gladitz
On 07/21/2014 09:07 PM, Totte Karlsson wrote: Hi, Is it possible to (easily) install a file, say Readme.txt, into a users "My Documents" folder, using CMake/CPack? I can't find information about such.. :( I'd consider having the installed application set these up when run since specifically

Re: [CMake] CMAKE changing Visual Studio Settings

2014-07-21 Thread John Drescher
> So CMAKE can't control the options int he *.user files I guess :-\? Would a > potential workaround be to find a command line tool that can edit these and > run it as a post-build script? CMake gives you the functionality needed to edit these via your own script. I mean reading and writing files

Re: [CMake] CMAKE changing Visual Studio Settings

2014-07-21 Thread Joseph Rosensweig
On Sun, Jul 20, 2014 at 11:49 PM, Nils Gladitz wrote: > On 07/21/2014 08:05 AM, Joseph Rosensweig wrote: > >> Visual Studio Settings >> >> Every time CMAKE generates a project it will be a fresh solution and >> will not maintain any of the settings you applied to the Visual Studio >> project.

Re: [CMake] Considering contributing a FindPyQt.cmake module

2014-07-21 Thread Stephen Kelly
Scott Kitterman wrote: > Given the above, I thought it would make sense to provide a new > FindPyQt.cmake that would replace (and be backward compatible with) > FindPyQt4.cmake that would work for both the new and old PyQt4 configure > and with PyQt5 and have it be actually in CMake so that there

Re: [CMake] how to add new source files in already build cmake project from inside eclipse cdt?

2014-07-21 Thread Alexander Neundorf
On Monday, July 21, 2014 08:40:11 Payal Prajapati wrote: > hello All, > > Two things to say: > > 1)I read all conversion regarding this topic..but can any one explain me > the whole procedure? > 2)I am working on orfeo toolbox which i imported in eclipse.It works fine > upto make target->build s

[CMake] My Documents folder

2014-07-21 Thread Totte Karlsson
Hi, Is it possible to (easily) install a file, say Readme.txt, into a users "My Documents" folder, using CMake/CPack? I can't find information about such.. :( -tk -- View this message in context: http://cmake.3232098.n2.nabble.com/My-Documents-folder-tp7587946.html Sent from the CMake mail

Re: [CMake] How to get a list of all the static libraries that a target will link against ?

2014-07-21 Thread Angeliki Chrysochou
Well try it and see if it works. If you set this variable in a specific CMakeLists file, it will affect the specific add_library (or add_executable) that is in that CMakeLists file. With this way you can control which libraries/executables will be linked with these flags, and this is the level of c

Re: [CMake] find_package and INTERFACE targets in 3.0

2014-07-21 Thread Walter Gray
Hendrick! That's exactly what I'm trying to do. Do you have an example of the declaration of the dll import target setup you could share? That would be immensely helpful. Thanks Walter On 7/19/2014 4:01 AM, Hendrik Sattler wrote: Hi, for DLLs, the .lib part has it's own property IMPORTED_I

Re: [CMake] How to get a list of all the static libraries that a target will link against ?

2014-07-21 Thread Glenn Coombs
The problem is that I need to add both -whole-archive and -no-whole-archive options. And I need to control exactly where they occur so that only my libraries occur inside the whole archive section. I'd be happy to be proven wrong but I don't think setting CMAKE_EXE_LINKER_FLAGS will give me that

[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" valu

Re: [CMake] Source List Compilation Depending on Configuration

2014-07-21 Thread Nils Gladitz
On 07/21/2014 04:01 PM, Jörg Kreuzberger wrote: ok, then it worked. i got no warning on the policies, maybe i would have then detected it further. Can i "enable" them "globally"? With cmake_minimum_required(VERSION 3.0) the new behaviour is used for the policy which is to ignore the property

Re: [CMake] Source List Compilation Depending on Configuration

2014-07-21 Thread Jörg Kreuzberger
ok, then it worked. i got no warning on the policies, maybe i would have then detected it further. Can i "enable" them "globally"? -Ursprüngliche Nachricht- Von:Nils Gladitz Gesendet: Mo 21.07.2014 15:36 Betreff:Re: AW: [CMake] Source List Compilation Depending on Conf

Re: [CMake] Source List Compilation Depending on Configuration

2014-07-21 Thread Nils Gladitz
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} ) set( CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG_INIT} ) and then append my own custom compiler definitions.

Re: [CMake] Source List Compilation Depending on Configuration

2014-07-21 Thread Jörg Kreuzberger
1) i reset it with set( CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS_INIT} ) set( CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE_INIT} ) set( CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG_INIT} ) and then append my own custom compiler definitions. "-DNDEBUG" appears in flags.make, only in CXX_FLAGS,

Re: [CMake] Source List Compilation Depending on Configuration

2014-07-21 Thread Nils Gladitz
On 07/21/2014 02:29 PM, Jörg Kreuzberger wrote: Hm, following your suggestion i replace lines if( "${CMAKE_BUILD_TYPE}" STREQUAL "Release") add_definitions( -DNDEBUG ) endif() with set_directory_properties( PROPERTIES COMPILE_DEFINITIONS_RELEASE "${COMPILE_DEFINITIONS_RELEASE};NDEBUG" ) ${COM

Re: [CMake] Source List Compilation Depending on Configuration

2014-07-21 Thread Jörg Kreuzberger
Hm, following your suggestion i replace lines if( "${CMAKE_BUILD_TYPE}" STREQUAL "Release") add_definitions( -DNDEBUG ) endif() with set_directory_properties( PROPERTIES COMPILE_DEFINITIONS_RELEASE "${COMPILE_DEFINITIONS_RELEASE};NDEBUG" ) it didnt worked. ( inspecting e.q. flags.make and compi

Re: [CMake] Source List Compilation Depending on Configuration

2014-07-21 Thread Stephen Kelly
Jörg Kreuzberger wrote: > Is there an easy way to handle this? Try a nightly build: http://www.cmake.org/files/dev/?C=M;O=D And a generator expression: http://www.cmake.org/cmake/help/v3.0/manual/cmake-generator-expressions.7.html add_library(mylib bar.cpp $<$:foo.cpp> ) Testing the

Re: [CMake] Source List Compilation Depending on Configuration

2014-07-21 Thread Nils Gladitz
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 files only then. BUT: how can i do this for multi configuration like vs? So i w

[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 i

Re: [CMake] How to get a list of all the static libraries that a target will link against ?

2014-07-21 Thread Angeliki Chrysochou
Hi Glenn, Adding linker flags exactly in target_link_libraries is not a very good practice in my opinion. To add specific linker flags to an executable, you can use the variable CMAKE_EXE_LINKER_FLAGS, which you can edit before calling add_executable. You could set this variable accordingly in you