I'me getting some troubles when trying to use wxWidgets 3.1. I'm working on Linux Mint, and I compiled the code from github.
I did:
../configure && make && sudo make install
Previously, I installed wxWidgets 3.0.2 from "apt" and it's still installed
When I specified in my CMakeLists
Code: Select all
find_package(wxWidgets 3.1 REQUIRED)
Code: Select all
Could NOT find wxWidgets: Found unsuitable version "3.0.2", but required is at least "3.1"
3.1.1 is installed in the directory I build it and in /usr/local/lib/
I tried a lot of things, but probably not the ggod way (target_link_libraries(...), set(wxWidgets_CONFIG_OPTIONS ...), list(...), add(...) and others.
I'm pretty sure it's quite simple but I really don't know how to do that. If possible, I want CMake to search in the directory I build it
Thank's all!
<3