mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
512 B
CMake
10 lines
512 B
CMake
set(TUNTAP_URL "https://build.openvpn.net/downloads/releases/latest/tap-windows-latest-stable.exe")
|
|
set(TUNTAP_EXE "${CMAKE_BINARY_DIR}/tuntap-install.exe")
|
|
file(DOWNLOAD
|
|
${TUNTAP_URL}
|
|
${TUNTAP_EXE})
|
|
install(PROGRAMS ${TUNTAP_EXE} DESTINATION bin)
|
|
set(CPACK_NSIS_DEFINES "RequestExecutionLevel admin")
|
|
set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "ExecWait '$INSTDIR\\\\bin\\\\tuntap-install.exe /S'")
|
|
set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "ExecWait 'C:\\\\Program Files\\\\TAP-Windows\\\\Uninstall.exe /S'")
|