mirror of
				https://github.com/yuezk/GlobalProtect-openconnect.git
				synced 2025-05-20 07:26:58 -04:00 
			
		
		
		
	improve cmake file
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
| @@ -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") | ||||
|   | ||||
| @@ -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" ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user