2018-10-24 20:23:07 +03:00
|
|
|
if(NOT WIN32)
|
|
|
|
message(FATAL_ERROR "VPN Client Manager is available only for Windows.")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(VPNCMGR_SOURCES vpncmgr.c vpncmgr.rc)
|
|
|
|
|
|
|
|
if(${COMPILER_ARCHITECTURE} STREQUAL "x64")
|
2018-11-19 02:13:59 +03:00
|
|
|
set(VPNCMGR_SOURCES ${VPNCMGR_SOURCES} ${TOP_DIRECTORY}/src/BuildFiles/Manifests/x64_user.manifest)
|
2018-10-24 20:23:07 +03:00
|
|
|
else()
|
2018-11-19 02:13:59 +03:00
|
|
|
set(VPNCMGR_SOURCES ${VPNCMGR_SOURCES} ${TOP_DIRECTORY}/src/BuildFiles/Manifests/x86_user.manifest)
|
2018-10-24 20:23:07 +03:00
|
|
|
endif()
|
|
|
|
|
|
|
|
add_executable(vpncmgr WIN32 ${VPNCMGR_SOURCES})
|
|
|
|
|
|
|
|
set_target_properties(vpncmgr
|
|
|
|
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(vpncmgr cedar mayaqua)
|