set (wxWidgets_USE_LIBS base core)
FIND_PACKAGE(wxWidgets COMPONENTS core base REQUIRED)
include (${wxWidgets_USE_FILE})
cmake 输出结果:
$ cmake -G "MSYS Makefiles"
CMake Error at c:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
Could NOT find wxWidgets (missing: wxWidgets_FOUND)
Call Stack (most recent call first):
c:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)
c:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindwxWidgets.cmake:831 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:8 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
请问为什么,我安装了wxWidgets 在C:\wxWidgets-2.9.1,但它还是找不到。在网上找了好久,没有答案。请高手帮忙,多谢了!
HUWWW