mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-23 01:49:53 +03:00
4328e6e5ab
It's Cedar itself that depends on Mayaqua, not the executables.
33 lines
812 B
CMake
33 lines
812 B
CMake
set(COMPONENT_NAME "Testing Utility")
|
|
set(COMPONENT_INTERNAL_NAME "vpntest")
|
|
|
|
add_executable(vpntest vpntest.c)
|
|
|
|
set_target_properties(vpntest
|
|
PROPERTIES
|
|
ARCHIVE_OUTPUT_DIRECTORY "${BUILD_DIRECTORY}"
|
|
LIBRARY_OUTPUT_DIRECTORY "${BUILD_DIRECTORY}"
|
|
RUNTIME_OUTPUT_DIRECTORY "${BUILD_DIRECTORY}"
|
|
)
|
|
|
|
if(WIN32)
|
|
set_target_properties(vpntest
|
|
PROPERTIES
|
|
PDB_OUTPUT_DIRECTORY "${BUILD_DIRECTORY}"
|
|
)
|
|
|
|
get_filename_component(COMPONENT_FILE_NAME vpntest NAME)
|
|
set(COMPONENT_FILE_NAME "${COMPONENT_FILE_NAME}.exe")
|
|
|
|
configure_file("${TOP_DIRECTORY}/src/BuildFiles/VerScript/ver.rc" "${CMAKE_CURRENT_BINARY_DIR}/ver.rc")
|
|
|
|
target_sources(vpntest PRIVATE
|
|
"vpntest.rc"
|
|
"ver.rc"
|
|
|
|
"${TOP_DIRECTORY}/src/BuildFiles/Manifests/common.manifest"
|
|
)
|
|
endif()
|
|
|
|
target_link_libraries(vpntest cedar)
|