2018-10-24 20:23:07 +03:00
|
|
|
if(NOT WIN32)
|
|
|
|
message(FATAL_ERROR "VPN Server Manager is available only for Windows.")
|
|
|
|
endif()
|
|
|
|
|
2018-11-27 07:26:21 +03:00
|
|
|
set(COMPONENT_NAME "Server Manager")
|
|
|
|
set(COMPONENT_INTERNAL_NAME "vpnsmgr")
|
|
|
|
|
|
|
|
add_executable(vpnsmgr WIN32 vpnsmgr.c vpnsmgr.rc)
|
|
|
|
|
|
|
|
get_filename_component(COMPONENT_FILE_NAME vpnsmgr NAME)
|
|
|
|
set(COMPONENT_FILE_NAME "${COMPONENT_FILE_NAME}.exe")
|
|
|
|
|
2020-07-20 19:31:41 +03:00
|
|
|
configure_file("${TOP_DIRECTORY}/src/BuildFiles/VerScript/ver.rc" "${CMAKE_CURRENT_BINARY_DIR}/ver.rc")
|
|
|
|
target_sources(vpnsmgr PRIVATE "vpnsmgr.rc" "${CMAKE_CURRENT_BINARY_DIR}/ver.rc")
|
2018-10-24 20:23:07 +03:00
|
|
|
|
|
|
|
if(${COMPILER_ARCHITECTURE} STREQUAL "x64")
|
2018-11-27 07:26:21 +03:00
|
|
|
target_sources(vpnsmgr PRIVATE "${TOP_DIRECTORY}/src/BuildFiles/Manifests/x64_user.manifest")
|
2018-10-24 20:23:07 +03:00
|
|
|
else()
|
2018-11-27 07:26:21 +03:00
|
|
|
target_sources(vpnsmgr PRIVATE "${TOP_DIRECTORY}/src/BuildFiles/Manifests/x86_user.manifest")
|
2018-10-24 20:23:07 +03:00
|
|
|
endif()
|
|
|
|
|
|
|
|
set_target_properties(vpnsmgr
|
|
|
|
PROPERTIES
|
|
|
|
ARCHIVE_OUTPUT_DIRECTORY "${BUILD_DIRECTORY}"
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${BUILD_DIRECTORY}"
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY "${BUILD_DIRECTORY}"
|
2018-11-18 06:18:42 +03:00
|
|
|
PDB_OUTPUT_DIRECTORY "${BUILD_DIRECTORY}"
|
2018-10-24 20:23:07 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(vpnsmgr cedar mayaqua)
|