config:一个gui配置。
This commit is contained in:
parent
31ae9aad2c
commit
318a794fa3
@ -17,4 +17,5 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE}
|
|||||||
|
|
||||||
add_subdirectory(util)
|
add_subdirectory(util)
|
||||||
add_subdirectory(server-core)
|
add_subdirectory(server-core)
|
||||||
add_subdirectory(server)
|
add_subdirectory(server)
|
||||||
|
add_subdirectory(gui)
|
@ -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)
|
@ -0,0 +1,4 @@
|
|||||||
|
#include "mainframe.h"
|
||||||
|
|
||||||
|
IMPLEMENT_APP(CMainFrame);
|
||||||
|
DECLARE_APP(CMainFrame);
|
@ -0,0 +1,6 @@
|
|||||||
|
#include "mainframe.h"
|
||||||
|
|
||||||
|
bool CMainFrame::OnInit()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
#ifndef MAINFRAME_H
|
||||||
|
#define MAINFRAME_H
|
||||||
|
|
||||||
|
#include <wx/wx.h>
|
||||||
|
|
||||||
|
class CMainFrame : public wxApp
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
bool OnInit() override;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
Loading…
x
Reference in New Issue
Block a user