mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
improve cmake file
This commit is contained in:
parent
3d9e416d77
commit
1dbb4df5f3
@ -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)
|
project(GlobalProtect-openconnect VERSION 1.3.3 LANGUAGES CXX)
|
||||||
|
|
||||||
@ -20,4 +20,4 @@ find_package(Qt5 REQUIRED COMPONENTS
|
|||||||
)
|
)
|
||||||
|
|
||||||
add_subdirectory(GPService)
|
add_subdirectory(GPService)
|
||||||
add_subdirectory(GPClient)
|
add_subdirectory(GPClient)
|
||||||
|
@ -70,8 +70,8 @@ target_link_libraries(gpclient
|
|||||||
Qt5::DBus
|
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(TARGETS gpclient DESTINATION "/usr/bin")
|
||||||
install(FILES com.yuezk.qt.gpclient.desktop DESTINATION "/usr/share/applications")
|
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")
|
||||||
|
@ -49,7 +49,7 @@ target_link_libraries(gpservice
|
|||||||
Qt5::DBus
|
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(TARGETS gpservice DESTINATION "/usr/bin")
|
||||||
install(FILES "dbus/com.yuezk.qt.GPService.conf" DESTINATION "/usr/share/dbus-1/system.d" )
|
install(FILES "dbus/com.yuezk.qt.GPService.conf" DESTINATION "/usr/share/dbus-1/system.d" )
|
||||||
|
Loading…
Reference in New Issue
Block a user