gui:remove
This commit is contained in:
parent
f5e3113883
commit
669a99179b
@ -82,7 +82,7 @@ install(FILES ${MINGW32_DLLS} DESTINATION bin)
|
|||||||
endif()
|
endif()
|
||||||
if (DEFINED USE_GUI)
|
if (DEFINED USE_GUI)
|
||||||
message(STATUS "USE GUI ${USE_GUI}")
|
message(STATUS "USE GUI ${USE_GUI}")
|
||||||
add_subdirectory(gui)
|
#add_subdirectory(gui)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# ********************************************************** pack infomation
|
# ********************************************************** pack infomation
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
cmake_minimum_required(VERSION 3.16)
|
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
||||||
project(transm-gui LANGUAGES CXX)
|
|
||||||
|
|
||||||
find_package(wxWidgets CONFIG REQUIRED)
|
|
||||||
|
|
||||||
set(SOURCES
|
|
||||||
main.cxx
|
|
||||||
MainFrame.cpp
|
|
||||||
MainFrame.h
|
|
||||||
)
|
|
||||||
|
|
||||||
add_executable(transm-gui ${SOURCES})
|
|
||||||
target_link_libraries(transm-gui PRIVATE
|
|
||||||
wx::core wx::base
|
|
||||||
)
|
|
||||||
set_target_properties(transm-gui PROPERTIES WIN32_EXECUTABLE TRUE)
|
|
@ -1,5 +0,0 @@
|
|||||||
#include "MainFrame.h"
|
|
||||||
|
|
||||||
CMainFrame::CMainFrame(const wxString& title) : wxFrame(NULL, wxID_ANY, title)
|
|
||||||
{
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
#ifndef MAINFRAME_H
|
|
||||||
#define MAINFRAME_H
|
|
||||||
|
|
||||||
#include <wx/wx.h>
|
|
||||||
|
|
||||||
class CMainFrame : public wxFrame
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
explicit CMainFrame(const wxString& title);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
21
gui/main.cxx
21
gui/main.cxx
@ -1,21 +0,0 @@
|
|||||||
#include "MainFrame.h"
|
|
||||||
#include <wx/wx.h>
|
|
||||||
|
|
||||||
class CTransForm : public wxApp
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
virtual bool OnInit()
|
|
||||||
{
|
|
||||||
wxString title = wxString::Format(wxT("transm-gui"));
|
|
||||||
auto* f = new CMainFrame(title);
|
|
||||||
f->Show(true);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
virtual int OnExit()
|
|
||||||
{
|
|
||||||
return wxApp::OnExit();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
IMPLEMENT_APP(CTransForm);
|
|
||||||
DECLARE_APP(CTransForm);
|
|
Loading…
x
Reference in New Issue
Block a user