I'm trying to create a widgets that derive the wxTreeListCtrl under macOS mojave.
I can successfully compile the treelist sample from wxWidgets with the command line and the command wx-config, but when I use cmake the variable wxWidgets_LIBS does not contains the same libraries from wx-config.
wxWidgets_LIBS content:
Code: Select all
-L/usr/local/lib -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -lwx_osx_cocoau_gl-3.1 -lwx_osx_cocoau_core-3.1 -lwx_baseu-3.1
Code: Select all
-L/usr/local/lib -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -lwx_osx_cocoau_xrc-3.1 -lwx_osx_cocoau_html-3.1 -lwx_osx_cocoau_qa-3.1 -lwx_osx_cocoau_adv-3.1 -lwx_osx_cocoau_core-3.1 -lwx_baseu_xml-3.1 -lwx_baseu_net-3.1 -lwx_baseu-3.1
Why Cmake does not link it?
Ps The find command in the cmake is:
Code: Select all
find_package(wxWidgets REQUIRED gl core base)