improve cmake file

This commit is contained in:
Kevin Yue 2021-09-15 13:41:00 +08:00
parent 3d9e416d77
commit 1dbb4df5f3
No known key found for this signature in database
GPG Key ID: 4D3A6EE977B15AC4
3 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.14.0)
cmake_minimum_required(VERSION 3.7.0)
project(GlobalProtect-openconnect VERSION 1.3.3 LANGUAGES CXX)
@ -20,4 +20,4 @@ find_package(Qt5 REQUIRED COMPONENTS
)
add_subdirectory(GPService)
add_subdirectory(GPClient)
add_subdirectory(GPClient)

View File

@ -70,8 +70,8 @@ target_link_libraries(gpclient
Qt5::DBus
)
# target_compile_definitions(gpclient PUBLIC QAPPLICATION_CLASS=QApplication)
target_compile_definitions(gpclient PUBLIC QAPPLICATION_CLASS=QApplication)
install(TARGETS gpclient DESTINATION "/usr/bin")
install(FILES com.yuezk.qt.gpclient.desktop DESTINATION "/usr/share/applications")
install(FILES com.yuezk.qt.GPClient.svg DESTINATION "/usr/share/pixmaps")
install(FILES com.yuezk.qt.GPClient.svg DESTINATION "/usr/share/pixmaps")

View File

@ -49,7 +49,7 @@ target_link_libraries(gpservice
Qt5::DBus
)
# target_compile_definitions(gpservice PUBLIC QAPPLICATION_CLASS=QCoreApplication)
target_compile_definitions(gpservice PUBLIC QAPPLICATION_CLASS=QCoreApplication)
install(TARGETS gpservice DESTINATION "/usr/bin")
install(FILES "dbus/com.yuezk.qt.GPService.conf" DESTINATION "/usr/share/dbus-1/system.d" )