# Generated by LightGUI (C++/XFrame).
# Build: cmake -S . -B build && cmake --build build
# The XFrame widget headers live in the installed location; point at
# them with -DLIGHTGUI_WIDGETS_DIR=<path> if they are not at the
# default below.
cmake_minimum_required(VERSION 3.20)
project(W9lives CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(LIGHTGUI_WIDGETS_DIR "/usr/local/include/lightgui" CACHE PATH "LightGUI XFrame widget sources (widgets/common/registry.h)")
if(NOT EXISTS "${LIGHTGUI_WIDGETS_DIR}/common/registry.h")
  message(FATAL_ERROR "XFrame widget sources not found at ${LIGHTGUI_WIDGETS_DIR} - pass -DLIGHTGUI_WIDGETS_DIR=<lightgui-repo>/widgets")
endif()
find_package(X11 REQUIRED)
add_executable(app main.cpp)
target_include_directories(app PRIVATE ${LIGHTGUI_WIDGETS_DIR})
target_link_libraries(app PRIVATE X11::X11)
