4 Star 1 Fork 3

阿传/hkgate

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 2.26 KB
一键复制 编辑 原始数据 按行查看 历史
阿传 提交于 2017-08-22 13:51 . change to static link
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(HkGate)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)
option(NOCRT "link crt static" ON)
if (MSVC)
#warning 4251
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4819 /wd4996 ")
if (NOCRT)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /DWIN32 /MTd")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /DWIN32 /MT")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /DWIN32 /MTd")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /DWIN32 /MT")
endif()
set(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} /SAFESEH:NO")
set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /OPT:NOREF /OPT:ICF /SAFESEH:NO")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${PROJECT_SOURCE_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${PROJECT_SOURCE_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG ${PROJECT_SOURCE_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${PROJECT_SOURCE_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${PROJECT_SOURCE_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${PROJECT_SOURCE_DIR}/lib)
if (MSVC90)
add_definitions(-D_BIND_TO_CURRENT_VCLIBS_VERSION=1)
endif()
else()
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
set(CMAKE_C_FLAGS "-fvisibility=hidden")
set(CMAKE_CXX_FLAGS "-fvisibility=hidden")
endif()
set(PROJECT_ROOT ${PROJECT_SOURCE_DIR})
set(THIRD_PARTY ${PROJECT_ROOT}/third_party)
set(COMN_DIR ${PROJECT_ROOT}/comn)
SET(FFMPEG_DIR ${THIRD_PARTY}/ffmpeg)
SET(FFMPEG_LIB_DIR ${FFMPEG_DIR}/lib)
set(RESIP_DIR ${PROJECT_ROOT}/resiprocate-1.10.2)
if(CMAKE_HOST_WIN32)
SET(LIB_FFMPEG avutil avcodec avformat swresample)
else()
#SET(LIB_FFMPEG avutil-55 avcodec-57 avformat-57)
endif()
if (CMAKE_HOST_WIN32)
set(LIB_PLATFORM ws2_32 )
else()
set(LIB_PLATFORM pthread rt)
endif()
include(resip.cmake)
ADD_SUBDIRECTORY(comn)
ADD_SUBDIRECTORY(third_party)
if (WIN32)
ADD_SUBDIRECTORY(CrashDump)
SET(CRASHDUMP_INCLUDE ${PROJECT_ROOT}/CrashDump)
SET(CRASHDUMP_LIB debug CrashDumpd optimized CrashDump Dbghelp)
endif()
ADD_SUBDIRECTORY(HkGate)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/100wisdom/hkgate.git
git@gitee.com:100wisdom/hkgate.git
100wisdom
hkgate
hkgate
master

搜索帮助