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
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake