Re: [CMake] CMake 2.8.1 / Win: Neither if nor else?`

2010-05-22 Thread Philip Lowman
On Sat, May 22, 2010 at 4:50 AM, Droscy wrote: > The right construct is > IF(ZLIB_FOUND) >MESSAGE( WARNING "HAVE system zlib" ) > ELSE(ZLIB_FOUND) > MESSAGE( WARNING "NO system zlib" ) > ENDIF(ZLIB_FOUND) > And if compatibility with CMake < 2.4.4 isn't a concern, an even better way to do

Re: [CMake] Need cmake help for MacOsX

2010-05-22 Thread Michael Wild
On 22. May, 2010, at 9:27 , Jerome Vernet wrote: > Le 22/05/10 09:11, Michael Wild a écrit : >> You're not thinking far enough ;-) >> >> set(APP_RSRCS_FRENCH French.lproj/SDLMain.nib ...) >> >> set_source_files_properties(${APP_RSRCS_FRENCH} PROPERTIES >> MACOSX_PACKAGE_LOCATION Resources/Fre

Re: [CMake] CMake 2.8.1 / Win: Neither if nor else?`

2010-05-22 Thread Droscy
Hi Torsten Torsten Rohlfing ha scritto: > IF(ZLIB_FOUND) > MESSAGE( WARNING "HAVE system zlib" ) > ELSEIF(ZLIB_FOUND) > MESSAGE( WARNING "NO system zlib" ) > ENDIF(ZLIB_FOUND) > > [...] > > Can someone explain to me what I am missing? You are not missing anything, simply you are wrongly using

Re: [CMake] Using objects in different targets

2010-05-22 Thread Michael Hertling
On 05/21/2010 03:05 PM, Christoph Rüdiger wrote: > Am 20.05.2010 um 13:33 schrieb Michael Hertling: > >> On 05/20/2010 01:04 PM, "Christoph Rüdiger" wrote: >>> [...] >>> I've a directory src containing the complete source code of the >>> program and >>> another directory called test containing t

Re: [CMake] Need cmake help for MacOsX

2010-05-22 Thread Michael Wild
On 21. May, 2010, at 22:31 , Jerome Vernet wrote: > Le 21/05/10 22:08, Michael Wild a écrit : >> Yes, you have to copy every file individually. AFAIK there is a source file >> property you can set to specify the location inside the bundle. >> >> >> > >>> That is not a file, but really a fo