move the 3rd party libs

This commit is contained in:
Kevin Yue 2021-09-12 21:25:30 +08:00
parent 2a68f6aa2d
commit 9f3ad7f9ad
4 changed files with 17 additions and 4 deletions

4
.gitmodules vendored
View File

@ -1,7 +1,7 @@
[submodule "singleapplication"] [submodule "singleapplication"]
path = SingleApplication path = 3rdparty/SingleApplication
url = https://github.com/itay-grudev/SingleApplication.git url = https://github.com/itay-grudev/SingleApplication.git
[submodule "plog"] [submodule "plog"]
path = plog path = 3rdparty/plog
url = https://github.com/SergiusTheBest/plog.git url = https://github.com/SergiusTheBest/plog.git

View File

View File

@ -9,6 +9,8 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON) set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON) set(CMAKE_AUTOUIC ON)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/3rdparty")
set(QAPPLICATION_CLASS QApplication CACHE STRING "Inheritance class for SingleApplication") set(QAPPLICATION_CLASS QApplication CACHE STRING "Inheritance class for SingleApplication")
include(cmake/CPM.cmake) include(cmake/CPM.cmake)
@ -22,8 +24,19 @@ find_package(Qt5 REQUIRED COMPONENTS
DBus DBus
) )
CPMAddPackage("gh:itay-grudev/SingleApplication@3.3.0") CPMAddPackage(
CPMAddPackage("gh:SergiusTheBest/plog#1.1.5") NAME SingleApplication
GITHUB_REPOSITORY itay-grudev/SingleApplication
VERSION 3.3.0
CPM_LOCAL_PACKAGES_ONLY YES
)
CPMAddPackage(
NAME plog
GITHUB_REPOSITORY SergiusTheBest/plog
GIT_TAG 1.1.5
CPM_LOCAL_PACKAGES_ONLY YES
# CPM_USE_LOCAL_PACKAGES YES
)
add_subdirectory(GPService) add_subdirectory(GPService)
add_subdirectory(GPClient) add_subdirectory(GPClient)