Add help menu and about dialog

This commit is contained in:
Loic Guegan 2023-02-01 21:15:11 +01:00
parent e0babeaf88
commit a575fea2bc
7 changed files with 376 additions and 36 deletions

View file

@ -2,12 +2,13 @@ cmake_minimum_required(VERSION 3.10)
project(ochess VERSION 0.0.0)
# wxWidgets
find_package(wxWidgets COMPONENTS net gl core base adv aui propgrid REQUIRED)
find_package(wxWidgets COMPONENTS net gl core base adv aui propgrid richtext REQUIRED)
include(${wxWidgets_USE_FILE})
# Ochess
include_directories(src)
file(GLOB_RECURSE CPP_FILES src/*.cpp)
string(TIMESTAMP BUILD_TIME "%Y-%m-%d %H:%M")
configure_file(${CMAKE_SOURCE_DIR}/src/config.h.in ${CMAKE_BINARY_DIR}/config.h)
include_directories(${CMAKE_CURRENT_BINARY_DIR}) # Enable access to config.h
add_executable(ochess ${CPP_FILES})