On Thursday 03 April 2008, Vitor Vasconcelos Araujo Silva wrote:
>      Hello guys,
>
>      I'm trying to use the TRY_COMPILE command and I guess I'm probaly
> making some mistake or I misunderstood the command.
>
>      My command is this one:
>
> TRY_COMPILE(RESULT ${PROJECT_BINARY_DIR}
>
> ${PROJECT_SOURCE_DIR}/teste.cpp
> CMAKE_FLAGS
> COMPILE_DEFINITIONS -I${QT_INCLUDE_DIR}
>                  -I${QT_QTCORE_INCLUDE_DIR}
>                       -l${QT_QTCORE_LIBRARY}
> OUTPUT_VARIABLE MY_OUT
> )

Did you try to use the macros CHECK_CXX_SOURCE_COMPILES() and friends which 
come with cmake ?
What's missing there ?

Alex
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to