# wxWidgets GUI frontend. Builds the `essim` executable against essim_core.
#
# Self-contained like every frontend: it pulls its own GUI toolkit (here a
# system wxWidgets via find_package), then defers the target wiring to the
# shared essim_add_frontend() helper. Select it with -DESSIM_FRONTEND=wx.
#
# Needs the wxWidgets development package, e.g. on Debian/Ubuntu:
#   sudo apt install libwxgtk3.2-dev

find_package(wxWidgets REQUIRED COMPONENTS core base)

# UsewxWidgets sets the include dirs and compile definitions for targets defined
# afterwards in this directory — so it must come before essim_add_frontend().
include(${wxWidgets_USE_FILE})

essim_add_frontend(wx LIBS ${wxWidgets_LIBRARIES})
