[CMake] [solved] custom cmake files

Marie-Christine Vallet mmvallet at ucdavis.edu
Fri Aug 3 17:35:35 EDT 2007


works like a charm.
Thanks,
Marie

Michael G. Hansen wrote:
>
> If I understand you correctly, you want to check whether the 
> FindQGLViewer found what it was looking for?
>
> There should be no need to turn the file into a macro. Once you do
>
> # Additional CMake modules for 3rd party library checks reside here
> SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_admin")
> FIND_PACKAGE(QGLViewer)
>
> which executes the code in FindQGLViewer.cmake, you can do stuff like:
>
> IF(QGLVIEWER_FOUND)
>   MESSAGE(STATUS "QGLViewer found")
>   ...
> ENDIF(QGLVIEWER_FOUND)
>
> in your CMakeLists file and use the variables set by the 
> FindQGLViewer.cmake.
>
> HTH, Mike
>



More information about the CMake mailing list