[CMake] using TRY_COMPILE() for testing

2010-04-10 Thread Frank Stappers
Hi, I wanted to know if it whether it is possible to use TRY_COMPILE() in a ADD_TEST(), such that the results can be uploaded to a CDash server. Currently, when executing cmake for the project all TRY_COMPILE() statements are executed and evaluated at configure time. This takes some time as there

Re: [CMake] Making it easier for downstreams to use my library

2010-04-10 Thread Stephen Kelly
Michael Wild wrote: On 9. Apr, 2010, at 20:20 , Alexander Neundorf wrote: [...] which will create IMPORTED targets with the same names as in the Grantlee project. So you can then set the variables set(Grantlee_CORE_LIBRARIES grantlee_core ${QT_QTCORE_LIBRARIES})

Re: [CMake] MingW Update for resource compilation.

2010-04-10 Thread Peter Collingbourne
On Fri, Mar 05, 2010 at 10:20:06PM -0800, J Decker wrote: All of the examples indicating ENABLE_LANGUAGE(RC) have the compiler set afterwards, and it turns out that the following lines work much better... I Added these to WIndows-GNU.cmake SET(CMAKE_RC_COMPILER windres)