Hi all,
 
I am writing some "CMakeLists.txt" files for my project that use VXL libraries. According to
the Appendix B of VXL book (http://public.kitware.com/vxl/doc/release/books/core/book_14.html#SEC148),
I insert following lines to my CMakeLists.txt file:
 
FIND_PACKAGE(VXL)
IF(VXL_FOUND)
  SET(VXL_PROVIDE_OLD_CACHE_NAMES 1)
  SET(VXL_PROVIDE_STANDARD_OPTIONS 1)
  INCLUDE(${VXL_CMAKE_DIR}/UseVXL.cmake)
ELSE(VXL_FOUND)
  MESSAGE("VXL_DIR should be set to the VXL build directory.")
ENDIF(VXL_FOUND)
 
My "CMakeLists.txt" files work fine under Windows Vista (Visual C++ 2008, CMake 2.6.0)
in that VXL_DIR is automatically set to the right location. But they do not work under Linux
CentOS 5.3 (GCC 4.1.2, CMake 2.6.4), with the error message below:
 
CMake Warning at CMakeLists.txt:8 (FIND_PACKAGE):
  Could not find module FindVXL.cmake or a configuration file for package
  VXL.
 
  Adjust CMAKE_MODULE_PATH to find FindVXL.cmake or set VXL_DIR to the
  directory containing a CMake configuration file for VXL.  The file will
  have one of the following names:
 
    VXLConfig.cmake
    vxl-config.cmake
 
  VXL_DIR should be set to the VXL build directory.
 

After some research, I could not find FindVXL.cmake on either Windows or Linux.
Could someone explain why VXL package is found under Windows, but not under Linux. Thanks.
 
Lianqing Yu
2009-11-15