# WXX_FOUND - wxx was found
# WXX_VER - wxx version
# WXX_LIBRARIES - the wxx libraries
xpFindPkg(PKGS wxwidgets) # dependencies
set(prj wxx)
# this file (-config) installed to share/cmake
get_filename_component(XP_ROOTDIR ${CMAKE_CURRENT_LIST_DIR}/../.. ABSOLUTE)
get_filename_component(XP_ROOTDIR ${XP_ROOTDIR} ABSOLUTE) # remove relative parts
# targets file (-targets) installed to lib/cmake
include(${XP_ROOTDIR}/lib/cmake/${prj}${WXWIDGETS_VER}-targets.cmake)
string(TOUPPER ${prj} PRJ)
set(${PRJ}_VER "${WXWIDGETS_VER} [@PROJECT_NAME@]")
if(NOT DEFINED wxx_libs)
  set(wxx_libs wxx::plotctrl wxx::things wxx::tlc)
endif()
set(${PRJ}_LIBRARIES ${wxx_libs})
set(reqVars ${PRJ}_VER ${PRJ}_LIBRARIES)
include(FindPackageHandleStandardArgs)
set(FPHSA_NAME_MISMATCHED TRUE) # find_package_handle_standard_args NAME_MISMATCHED (prefix usexp-)
find_package_handle_standard_args(${prj} REQUIRED_VARS ${reqVars})
mark_as_advanced(${reqVars})
