Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
CMakeLists.txt 1.49 KB
Copy Edit Raw Blame History
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)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化