mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-10 03:30:39 +03:00
Add "vpntest" to CMake
This commit is contained in:
parent
ee208dd6f0
commit
97d7f3fb05
@ -115,6 +115,10 @@ get_target_property(VPNBRIDGE_RUNTIME_OUTPUT_DIRECTORY vpnbridge RUNTIME_OUTPUT_
|
||||
add_subdirectory(vpncmd)
|
||||
get_target_property(VPNCMD_RUNTIME_OUTPUT_DIRECTORY vpncmd RUNTIME_OUTPUT_DIRECTORY)
|
||||
|
||||
# vpntest
|
||||
add_subdirectory(vpntest)
|
||||
get_target_property(VPNTEST_RUNTIME_OUTPUT_DIRECTORY vpntest RUNTIME_OUTPUT_DIRECTORY)
|
||||
|
||||
# hamcore.se2 archive file
|
||||
add_custom_target(hamcore-archive-build
|
||||
ALL
|
||||
@ -148,6 +152,12 @@ add_custom_command(TARGET hamcore-archive-build
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/tmp/hamcore.se2 ${VPNCMD_RUNTIME_OUTPUT_DIRECTORY}
|
||||
)
|
||||
|
||||
# Copy hamcore.se2 to vpntest's directory
|
||||
add_custom_command(TARGET hamcore-archive-build
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/tmp/hamcore.se2 ${VPNTEST_RUNTIME_OUTPUT_DIRECTORY}
|
||||
)
|
||||
|
||||
# Copy "vpnserver" directory to /usr/lib(exec)/softether/, install launch script and systemd service
|
||||
install(DIRECTORY ${VPNSERVER_RUNTIME_OUTPUT_DIRECTORY}
|
||||
COMPONENT "vpnserver"
|
||||
|
10
src/vpntest/CMakeLists.txt
Normal file
10
src/vpntest/CMakeLists.txt
Normal file
@ -0,0 +1,10 @@
|
||||
add_executable(vpntest vpntest.c vpntest.h)
|
||||
|
||||
set_target_properties(vpntest
|
||||
PROPERTIES
|
||||
ARCHIVE_OUTPUT_DIRECTORY "${BUILD_DIRECTORY}/vpntest"
|
||||
LIBRARY_OUTPUT_DIRECTORY "${BUILD_DIRECTORY}/vpntest"
|
||||
RUNTIME_OUTPUT_DIRECTORY "${BUILD_DIRECTORY}/vpntest"
|
||||
)
|
||||
|
||||
target_link_libraries(vpntest cedar mayaqua)
|
Loading…
Reference in New Issue
Block a user