From: Wheeler, F. W (G. Research) <wh...@ge...> - 2009-11-16 15:43:22
|
Lianqing, There is no FindVXL.cmake, but the configuration file VXLConfig.cmake will be created in the top level directory of the VXL build tree (not the source tree, the build tree) after you run CMake for VXL. VXL_DIR should be set to that top level directory when you configure your project. Perhaps you ran cmake for the windows build, but not the linux build? Fred Wheeler ________________________________ From: Lianqing Yu [mailto:lq...@nl...] Sent: Sunday, November 15, 2009 7:46 AM To: vxl...@li... Subject: [Vxl-users] CMakeLists.txt: Could not find VXL package in Linux 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#SEC14 8), 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 |