config:一个gui配置。

This commit is contained in:
taynpg 2025-04-01 16:51:30 +08:00
parent 31ae9aad2c
commit 318a794fa3
5 changed files with 41 additions and 1 deletions

View File

@ -17,4 +17,5 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE}
add_subdirectory(util)
add_subdirectory(server-core)
add_subdirectory(server)
add_subdirectory(server)
add_subdirectory(gui)

View File

@ -0,0 +1,17 @@
cmake_minimum_required(VERSION 3.16)
project(gtransm LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(wxWidgets CONFIG REQUIRED)
set(PSOURCES
main.cxx
mainframe.cxx
mainframe.h
)
add_executable(gtransm ${PSOURCES})
target_link_libraries(gtransm PRIVATE wx::base wx::core)
set_target_properties(gtransm PROPERTIES WIN32_EXECUTABLE TRUE)

View File

@ -0,0 +1,4 @@
#include "mainframe.h"
IMPLEMENT_APP(CMainFrame);
DECLARE_APP(CMainFrame);

View File

@ -0,0 +1,6 @@
#include "mainframe.h"
bool CMainFrame::OnInit()
{
return false;
}

View File

@ -0,0 +1,12 @@
#ifndef MAINFRAME_H
#define MAINFRAME_H
#include <wx/wx.h>
class CMainFrame : public wxApp
{
public:
bool OnInit() override;
};
#endif