1 Star 0 Fork 1

shatanzhihu/RoundPlayer

forked from 阿传/RoundPlayer 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 2.38 KB
一键复制 编辑 原始数据 按行查看 历史
阿传 提交于 2017-08-01 22:01 . add xlsx
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
PROJECT(RoundPlayer)
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" OFF)
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")
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)
endif()
if (CMAKE_PREFIX_PATH)
else()
set (CMAKE_PREFIX_PATH $ENV{CMAKE_PREFIX_PATH})
if (NOT CMAKE_PREFIX_PATH)
if (WIN32)
set (CMAKE_PREFIX_PATH e:/Qt/Qt5.8.0/5.8/msvc2015)
else()
set (CMAKE_PREFIX_PATH /home/terry/Qt5.8.0/5.8/gcc_64)
endif()
endif()
endif()
message("qt path: ${CMAKE_PREFIX_PATH}")
set(PROJECT_ROOT ${PROJECT_SOURCE_DIR})
set(LITEPLAYER_DIR ${PROJECT_ROOT}/LitePlayer)
set(COMN_DIR ${PROJECT_ROOT}/comn)
set(THIRD_PARTY ${PROJECT_ROOT}/third_party)
set(QT_DIR ${CMAKE_PREFIX_PATH})
SET(DIR_FFMPEG ${LITEPLAYER_DIR}/third_party/ffmpeg)
if (CMAKE_HOST_WIN32)
set(LIB_PLATFORM ws2_32 )
else()
set(LIB_PLATFORM pthread rt)
endif()
SET(FFMPEG_DIR ${THIRD_PARTY}/ffmpeg)
if (CMAKE_HOST_WIN32)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
SET(FFMPEG_DIR ${THIRD_PARTY}/ffmpeg/x64)
endif()
SET(DIR_FFMPEG_LIB ${FFMPEG_DIR}/bin)
SET(LIB_FFMPEG avutil avcodec avformat swresample)
else()
SET(DIR_FFMPEG_LIB ${FFMPEG_DIR}/lib)
if(CMAKE_TOOLCHAIN_FILE)
SET(DIR_FFMPEG_LIB ${THIRD_PARTY}/ffmpeg/arm)
endif()
SET(LIB_FFMPEG avutil-55 avcodec-57 avformat-57 swresample-2)
endif()
ADD_SUBDIRECTORY(comn)
ADD_SUBDIRECTORY(third_party)
#ADD_SUBDIRECTORY(test)
ADD_SUBDIRECTORY(RoundPlayer)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shatanzhihu/RoundPlayer.git
git@gitee.com:shatanzhihu/RoundPlayer.git
shatanzhihu
RoundPlayer
RoundPlayer
master

搜索帮助