wxWidgets not found (Win10, mingw)
I copied wxWidgets-3.1.5 sources in C:\wxWidgets-3.1.5 In subdirectory build I successfully build the libraries:
mingw32-make SHELL=CMD.exe -j4 -f makefile.gcc BUILD=release UNICODE=1 SHARED=0 MONOLITHIC=1
In CMakeLists.txt these lines:
set( wxWidgets_ROOT_DIR C:/wxWidgets-3.1.5 )
set( wxWidgets_CONFIGURATION mswu )
find_package( wxWidgets 3.1 REQUIRED COMPONENTS gl core base OPTIONAL_COMPONENTS net )
don't find the installation. Activating the "Debug Output" doesn't give any further information:
CMake Error at C:/emartna/cmake/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES
wxWidgets_INCLUDE_DIRS gl core base) (Required is at least version "3.1")
Call Stack (most recent call first):
C:/emartna/cmake/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
C:/emartna/cmake/share/cmake-3.21/Modules/FindwxWidgets.cmake:1025 (find_package_handle_standard_args)
CMakeLists.txt:189 (find_package)