what is the correct way to set up CMake with wxWidgets? Under Linux, all you have to do is
Code: Select all
find_package(wxWidgets COMPONENTS core base qa adv net html gl propgrid richtext REQUIRED)
Under Windows, you have to point to the installation directory, e.g.
Code: Select all
set(wxWidgets_ROOT_DIR "C:/wxWidgets-3.1.3")
set(wxWidgets_LIB_DIR "C:/wxWidgets-3.1.3/lib/vc14x_x64_dll")
1. delete cache (just to be consistent)
2. press 'configure' button
--> fail:
CMake Error at C:/Program Files/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES
wxWidgets_INCLUDE_DIRS core base qa adv net html gl propgrid richtext)
3. press 'configure' button again
--> success
Found wxWidgets: debug;C:/wxWidgets-3.1.3/lib/vc14x_x64_dll/wxmsw31ud_core.lib;optimized;C:/wxWidgets-3.1.3/lib/vc14x_x64_dll/wxmsw31u_core.lib;[...]found components: core base qa adv net html gl propgrid richtext png tiff jpeg zlib regex expat
I had the same behavior with a previous version of CMake-GUI (3.12). What is the correct way to set up wx under windows?
Best