[CMake] XCode automatic dependencies

2009-09-03 Thread Jeroen Dierckx
Hi,

We are in the progress of converting our build system(s) to cmake, and
we are working on the following platforms:
- Windows (VS2008)
- Linux (KDevelop)
- Mac OSX Snow Leopard (XCode)
- iPhone (through XCode)

Everything works very good, and I am glad that we took the dive. In
XCode however, dependencies on other cmake-generated targets aren't
setup automatically. The CMake book and documentation states that it
is enough to use target_link_libraries, and cmake should detect all
internal dependencies automatically. This works perfectly in our
generated Visual Studio files, but it doesn't work on XCode.

When I explicitly use add_dependency with the same targets, everything
is setup correctly, also in XCode.

Greetings,
JeDi
___
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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] XCode automatic dependencies

2009-09-03 Thread Jeroen Dierckx
On Thu, Sep 3, 2009 at 2:24 PM, Bill Hoffman wrote:
> Jeroen Dierckx wrote:
>>
>> Hi,
>>
>> We are in the progress of converting our build system(s) to cmake, and
>> we are working on the following platforms:
>> - Windows (VS2008)
>> - Linux (KDevelop)
>> - Mac OSX Snow Leopard (XCode)
>> - iPhone (through XCode)
>>
>> Everything works very good, and I am glad that we took the dive. In
>> XCode however, dependencies on other cmake-generated targets aren't
>> setup automatically. The CMake book and documentation states that it
>> is enough to use target_link_libraries, and cmake should detect all
>> internal dependencies automatically. This works perfectly in our
>> generated Visual Studio files, but it doesn't work on XCode.
>>
>> When I explicitly use add_dependency with the same targets, everything
>> is setup correctly, also in XCode.
>>
>
> Can you give a small example that shows this issue?

Hmm. I just installed the latest version of cmake, which seems to work
as expected. I removed the explicit add_dependency lines, and all
dependencies are setup correctly, also in XCode.

Sorry to bother you...

Greetings,
JeDi


>
> -Bill
>
___
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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] XCode automatic dependencies

2009-09-03 Thread Bill Hoffman

Jeroen Dierckx wrote:

Hi,

We are in the progress of converting our build system(s) to cmake, and
we are working on the following platforms:
- Windows (VS2008)
- Linux (KDevelop)
- Mac OSX Snow Leopard (XCode)
- iPhone (through XCode)

Everything works very good, and I am glad that we took the dive. In
XCode however, dependencies on other cmake-generated targets aren't
setup automatically. The CMake book and documentation states that it
is enough to use target_link_libraries, and cmake should detect all
internal dependencies automatically. This works perfectly in our
generated Visual Studio files, but it doesn't work on XCode.

When I explicitly use add_dependency with the same targets, everything
is setup correctly, also in XCode.



Can you give a small example that shows this issue?

-Bill
___
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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] XCode automatic dependencies

2009-09-03 Thread Bill Hoffman

Jeroen Dierckx wrote:


Can you give a small example that shows this issue?


Hmm. I just installed the latest version of cmake, which seems to work
as expected. I removed the explicit add_dependency lines, and all
dependencies are setup correctly, also in XCode.

Sorry to bother you...



Great, Glad to hear it worked for you.  So, you were able to get iPhone 
development to work?   I did not realize that would work.  If it does 
work, you might want to write up some instructions on the CMake wiki.


-Bill
___
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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] XCode automatic dependencies

2009-09-03 Thread Jeroen Dierckx
On Thu, Sep 3, 2009 at 3:46 PM, Bill Hoffman wrote:
> Jeroen Dierckx wrote:
>
>>> Can you give a small example that shows this issue?
>>
>> Hmm. I just installed the latest version of cmake, which seems to work
>> as expected. I removed the explicit add_dependency lines, and all
>> dependencies are setup correctly, also in XCode.
>>
>> Sorry to bother you...
>>
>
> Great, Glad to hear it worked for you.  So, you were able to get iPhone
> development to work?   I did not realize that would work.  If it does work,
> you might want to write up some instructions on the CMake wiki.

Not yet, but Ogre (http://www.ogre3d.org/) officially supports the
iPhone in their new version (available from SVN only for now). They
successfully use cmake to generate build environments for all their
platforms, including the iPhone. It involves settings some xcode
variables, and explicitly enabling the iPhone build in a cmake option.

Greetings,
JeDi
___
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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] XCode automatic dependencies

2009-09-03 Thread Bill Hoffman



Not yet, but Ogre (http://www.ogre3d.org/) officially supports the
iPhone in their new version (available from SVN only for now). They
successfully use cmake to generate build environments for all their
platforms, including the iPhone. It involves settings some xcode
variables, and explicitly enabling the iPhone build in a cmake option.



Sounds good, if you do get it working, please consider updating the 
wiki, or if you contact the ogre3d developers at any point ask them. 
Are there any ogre3d folks on this list???


-Bill
___
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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake