Fetch the repository succeeded.
cmake_policy(PUSH)
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
project(sipclient
VERSION 2.0.818.1
#DESCRIPTION "sipclient-v2 - sipclient, sip client signaling simulator"
#HOMEPAGE_URL "http://10.0.2.235/luanhui/sipclient-v2.git"
LANGUAGES C CXX)
#cmake_policy(SET CMP0048 NEW)
## not build ZERO_CHECK
#set(CMAKE_SUPPRESS_REGENERATION ON)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
message(STATUS "System info: name:${CMAKE_SYSTEM_NAME}, version:${CMAKE_SYSTEM_VERSION}, processor:${CMAKE_SYSTEM_PROCESSOR}")
if(MSVC)
message(STATUS "CMAKE_VS_PLATFORM_TOOLSET:${CMAKE_VS_PLATFORM_TOOLSET}")
endif()
#message(STATUS "c_features:[${CMAKE_C_COMPILE_FEATURES}]")
#message(STATUS "cxx_features:[${CMAKE_CXX_COMPILE_FEATURES}]")
## support for c++11
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(CMAKE_CROSSCOMPILING)
message(STATUS "Cross-Compiling for ${CMAKE_SYSTEM_NAME}[${CMAKE_SYSTEM_PROCESSOR}], CMAKE_TOOLCHAIN_FILE:${CMAKE_TOOLCHAIN_FILE}")
add_compile_options(${CROSS_COMPILE_OPTIONS})
endif()
## confirm build output directory
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
#set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
#set(ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)
if(UNIX)
# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -ggdb")
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g -ggdb")
add_compile_options(-Wno-deprecated-declarations)
endif()
add_subdirectory(sipclient)
cmake_policy(POP)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。