chore: fixed amneziavpn-service version (#1726)

This commit is contained in:
Nethius
2025-07-17 15:22:21 +08:00
committed by GitHub
parent e027c504ae
commit d767214f10
3 changed files with 59 additions and 2 deletions
+12 -1
View File
@@ -162,7 +162,14 @@ if (WIN32 OR APPLE OR LINUX)
)
endif()
set(RESOURCES)
if(WIN32)
configure_file(
${CMAKE_CURRENT_LIST_DIR}/amneziavpn-service.rc.in
${CMAKE_CURRENT_BINARY_DIR}/amneziavpn-service.rc
)
set(HEADERS ${HEADERS}
${CMAKE_CURRENT_LIST_DIR}/tapcontroller_win.h
${CMAKE_CURRENT_LIST_DIR}/router_win.h
@@ -203,6 +210,10 @@ if(WIN32)
${CMAKE_CURRENT_SOURCE_DIR}/../../client/platforms/windows/windowsutils.cpp
)
set(RESOURCES ${RESOURCES}
${CMAKE_CURRENT_BINARY_DIR}/amneziavpn-service.rc
)
set(LIBS
user32
rasapi32
@@ -308,7 +319,7 @@ include_directories(
)
add_executable(${PROJECT} ${SOURCES} ${HEADERS})
add_executable(${PROJECT} ${SOURCES} ${HEADERS} ${RESOURCES})
target_link_libraries(${PROJECT} PRIVATE Qt6::Core Qt6::Widgets Qt6::Network Qt6::RemoteObjects Qt6::Core5Compat Qt6::DBus ${LIBS})
target_compile_definitions(${PROJECT} PRIVATE "MZ_$<UPPER_CASE:${MZ_PLATFORM_NAME}>")