migrate to cmake

This commit is contained in:
Kevin Yue
2021-09-12 21:04:04 +08:00
parent 0d4485d754
commit 2a68f6aa2d
10 changed files with 122 additions and 4 deletions

37
GPClient/CMakeLists.txt Normal file
View File

@@ -0,0 +1,37 @@
project(gpclient)
set(gpclient_GENERATED_SOURCES)
qt5_add_dbus_interface(gpclient_GENERATED_SOURCES ${CMAKE_BINARY_DIR}/com.yuezk.qt.GPService.xml gpserviceinterface)
add_executable(gpclient
cdpcommand.cpp
cdpcommandmanager.cpp
enhancedwebview.cpp
gatewayauthenticator.cpp
gatewayauthenticatorparams.cpp
gpgateway.cpp
gphelper.cpp
loginparams.cpp
main.cpp
normalloginwindow.cpp
portalauthenticator.cpp
portalconfigresponse.cpp
preloginresponse.cpp
samlloginwindow.cpp
gpclient.cpp
settingsdialog.cpp
${gpclient_GENERATED_SOURCES}
)
target_include_directories(gpclient PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries(gpclient
plog
SingleApplication
Qt5::Widgets
Qt5::WebSockets
Qt5::WebEngine
Qt5::WebEngineWidgets
Qt5::DBus
)

View File

@@ -1,7 +1,7 @@
#ifndef GPCLIENT_H
#define GPCLIENT_H
#include "gpservice_interface.h"
#include "gpserviceinterface.h"
#include "portalconfigresponse.h"
#include "settingsdialog.h"