Re: [CMake] OS X Icon file

2012-03-09 Thread Michael Jackson
SET_SOURCE_FILES_PROPERTIES(${ICON_FILE_PATH} PROPERTIES MACOSX_PACKAGE_LOCATION Resources) -- Mike Jackson On Mar 9, 2012, at 3:46 PM, Chuck Theobald wrote: > Hello all, > > How do I specify that my icon file (.icns) be installed to the correct > location in an

[CMake] OS X Icon file

2012-03-09 Thread Chuck Theobald
Hello all, How do I specify that my icon file (.icns) be installed to the correct location in an OS X bundle? So far, I've got: IF ( ${CMAKE_HOST_APPLE} ) message( "OS X build" ) SET( CMAKE_CXX_FLAGS " -m32 ${CMAKE_CXX_FLAGS} " ) SET( MACOSX_BUNDLE_INFO_STRING "MRIConvert - version 2.0"

Re: [CMake] how to modify scope of imported library

2012-03-09 Thread Cong Ma
I just did the same thing as Petr, Hopefully, we can do it gracefully with 2.8.8. Thanks~~ On Fri, Mar 9, 2012 at 10:48 AM, Alexander Neundorf wrote: > On Friday 09 March 2012, Petr Kmoch wrote: > > Hi, > > > > I was solving a similar problem in our setup at work. The problem was > > that the

Re: [CMake] math(EXPR) and unary operators

2012-03-09 Thread Rolf Eike Beer
George Koehler wrote: > math(EXPR) rejects expressions with negative numbers. This is awful > because math() can reject its own negative results. For example, this > code fails: > > math(EXPR negative "1 - 2") > math(EXPR sum "100 + ${negative}") If you are touching this file anyway, do you s

Re: [CMake] how to modify scope of imported library

2012-03-09 Thread Alexander Neundorf
On Friday 09 March 2012, Petr Kmoch wrote: > Hi, > > I was solving a similar problem in our setup at work. The problem was > that the parent couldn't know in advance which libraries will be > imported by children. Conceptually speaking, I solved this by creating > my own set of global properties w

Re: [CMake] math(EXPR) and unary operators

2012-03-09 Thread j s
Make sure you set the precedence and associativity of this operator. Look for the prec declaration and resulting rule at: http://www.gnu.org/software/bison/manual/html_node/Infix-Calc.html For example: /* Bison declarations. */ %token NUM %left '-' '+' %left '*' '/' %left

Re: [CMake] Ninja + CMake on a dashboard?

2012-03-09 Thread Bill Hoffman
On 3/9/2012 12:21 PM, Steven Wilson wrote: Where does the Ninja generator currently live? Ie which branch in the sources, etc? I am keen to see support for the Ninja generator on Mac/Linux/Windows and would not mind working on it. Thanks, Steve The ninja support is in the next branch right

Re: [CMake] Ninja + CMake on a dashboard?

2012-03-09 Thread Steven Wilson
Where does the Ninja generator currently live? Ie which branch in the sources, etc? I am keen to see support for the Ninja generator on Mac/Linux/Windows and would not mind working on it. Thanks, Steve 2012/3/8 Peter Collingbourne > On Wed, Mar 07, 2012 at 07:14:52AM +0100, Nicolas Desprès

[CMake] UPD: dependencies for header files

2012-03-09 Thread Alexander Usov
Nevrmind -- I just figured out my mistake. -- Best regards,   Alexander. -- 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

[CMake] How to correctly set dependencies for header files generated in another directory

2012-03-09 Thread Alexander Usov
Hi, I'm trying to figure out how to correctly set up dependencies for generated header files. I have prepared an example setup here: http://github.com/usovalx/cmake_test.git Quick summary: root/CMakeLists.txt: add_subdirectory(sub1) add_subdirectory(sub2) sub2/CMakeLists.txt: add_custom_command(

Re: [CMake] Code and API review request for Qt5 CMake files

2012-03-09 Thread Michael Hertling
On 03/05/2012 02:04 AM, Stephen Kelly wrote: > > Michael Hertling wrote: > * Currently there is no Qt5Config.cmake. Such a thing could probably exist and use the FIND_COMPONENTS to find what was requested. [...] > > Hi there, > > Thank you for your insights on this issue. Do you

Re: [CMake] how to modify scope of imported library

2012-03-09 Thread Petr Kmoch
Hi, I was solving a similar problem in our setup at work. The problem was that the parent couldn't know in advance which libraries will be imported by children. Conceptually speaking, I solved this by creating my own set of global properties which contain all necessary details about the libraries

Re: [CMake] Automatically add a revision number to the CPack installer name

2012-03-09 Thread Eric Noulard
2012/3/9 Glenn Ramsey : > > Thanks Eric, this lead me to a solution that works for me, where the > revision number is updated at build time. For future reference here is what > I did: [...] This is a nice and relatively easy solution. Thank you for sharing the final solution. -- Erk Le gouvern