Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
尘离序散
obs-studio
提交
e3fe26d7
O
obs-studio
项目概览
尘离序散
/
obs-studio
与 Fork 源项目一致
从无法访问的项目Fork
通知
30
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
obs-studio
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e3fe26d7
编写于
5月 23, 2015
作者:
J
jp9000
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cmake: Add libcurl support
上级
a14d0039
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
72 addition
and
0 deletion
+72
-0
cmake/Modules/CopyMSVCBins.cmake
cmake/Modules/CopyMSVCBins.cmake
+14
-0
cmake/Modules/FindLibcurl.cmake
cmake/Modules/FindLibcurl.cmake
+58
-0
未找到文件。
cmake/Modules/CopyMSVCBins.cmake
浏览文件 @
e3fe26d7
...
@@ -98,6 +98,18 @@ file(GLOB LIBFDK_BIN_FILES
...
@@ -98,6 +98,18 @@ file(GLOB LIBFDK_BIN_FILES
"
${
Libfdk_INCLUDE_DIR
}
/bin/libfdk*-*.dll"
"
${
Libfdk_INCLUDE_DIR
}
/bin/libfdk*-*.dll"
"
${
Libfdk_INCLUDE_DIR
}
/bin
${
_bin_suffix
}
/libfdk*-*.dll"
)
"
${
Libfdk_INCLUDE_DIR
}
/bin
${
_bin_suffix
}
/libfdk*-*.dll"
)
file
(
GLOB CURL_BIN_FILES
"
${
CURL_INCLUDE_DIR
}
/../build/Win
${
_bin_suffix
}
/VC12/DLL Release - DLL Windows SSPI/libcurl.dll"
"
${
CURL_INCLUDE_DIR
}
/../bin
${
_bin_suffix
}
/libcurl*.dll"
"
${
CURL_INCLUDE_DIR
}
/../bin
${
_bin_suffix
}
/curl*.dll"
"
${
CURL_INCLUDE_DIR
}
/../bin/libcurl*.dll"
"
${
CURL_INCLUDE_DIR
}
/../bin/curl*.dll"
"
${
CURL_INCLUDE_DIR
}
/bin
${
_bin_suffix
}
/libcurl*.dll"
"
${
CURL_INCLUDE_DIR
}
/bin
${
_bin_suffix
}
/curl*.dll"
"
${
CURL_INCLUDE_DIR
}
/bin/libcurl*.dll"
"
${
CURL_INCLUDE_DIR
}
/bin/curl*.dll"
)
if
(
CMAKE_CONFIGURATION_TYPES MATCHES
"Debug"
)
if
(
CMAKE_CONFIGURATION_TYPES MATCHES
"Debug"
)
file
(
GLOB QT_DEBUG_BIN_FILES
file
(
GLOB QT_DEBUG_BIN_FILES
"
${
Qt5Core_DIR
}
/../../../bin/Qt5Cored.dll"
"
${
Qt5Core_DIR
}
/../../../bin/Qt5Cored.dll"
...
@@ -128,6 +140,7 @@ file(GLOB QT_ICU_BIN_FILES
...
@@ -128,6 +140,7 @@ file(GLOB QT_ICU_BIN_FILES
set
(
ALL_BASE_BIN_FILES
set
(
ALL_BASE_BIN_FILES
${
FFMPEG_BIN_FILES
}
${
FFMPEG_BIN_FILES
}
${
X264_BIN_FILES
}
${
X264_BIN_FILES
}
${
CURL_BIN_FILES
}
${
LIBFDK_BIN_FILES
}
${
LIBFDK_BIN_FILES
}
${
FREETYPE_BIN_FILES
}
${
FREETYPE_BIN_FILES
}
${
QT_ICU_BIN_FILES
}
)
${
QT_ICU_BIN_FILES
}
)
...
@@ -158,6 +171,7 @@ message(STATUS "FFmpeg files: ${FFMPEG_BIN_FILES}")
...
@@ -158,6 +171,7 @@ message(STATUS "FFmpeg files: ${FFMPEG_BIN_FILES}")
message
(
STATUS
"x264 files:
${
X264_BIN_FILES
}
"
)
message
(
STATUS
"x264 files:
${
X264_BIN_FILES
}
"
)
message
(
STATUS
"Libfdk files:
${
LIBFDK_BIN_FILES
}
"
)
message
(
STATUS
"Libfdk files:
${
LIBFDK_BIN_FILES
}
"
)
message
(
STATUS
"Freetype files:
${
FREETYPE_BIN_FILES
}
"
)
message
(
STATUS
"Freetype files:
${
FREETYPE_BIN_FILES
}
"
)
message
(
STATUS
"curl files:
${
CURL_BIN_FILES
}
"
)
message
(
STATUS
"QT Debug files:
${
QT_DEBUG_BIN_FILES
}
"
)
message
(
STATUS
"QT Debug files:
${
QT_DEBUG_BIN_FILES
}
"
)
message
(
STATUS
"QT Debug Platform files:
${
QT_DEBUG_PLAT_BIN_FILES
}
"
)
message
(
STATUS
"QT Debug Platform files:
${
QT_DEBUG_PLAT_BIN_FILES
}
"
)
message
(
STATUS
"QT Release files:
${
QT_BIN_FILES
}
"
)
message
(
STATUS
"QT Release files:
${
QT_BIN_FILES
}
"
)
...
...
cmake/Modules/FindLibcurl.cmake
0 → 100644
浏览文件 @
e3fe26d7
# Once done these will be defined:
#
# LIBCURL_FOUND
# LIBCURL_INCLUDE_DIRS
# LIBCURL_LIBRARIES
#
# For use in OBS:
#
# CURL_INCLUDE_DIR
find_package
(
PkgConfig QUIET
)
if
(
PKG_CONFIG_FOUND
)
pkg_check_modules
(
_CURL QUIET curl
)
endif
()
if
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
set
(
_lib_suffix 64
)
else
()
set
(
_lib_suffix 32
)
endif
()
find_path
(
CURL_INCLUDE_DIR
NAMES curl/curl.h
HINTS
ENV curlPath
${
_lib_suffix
}
ENV curlPath
${
_CURL_INCLUDE_DIRS
}
PATHS
/usr/include /usr/local/include /opt/local/include /sw/include
PATH_SUFFIXES
include
)
find_library
(
CURL_LIB
NAMES
${
_CURL_LIBRARIES
}
curl libcurl
HINTS
ENV curlPath
${
_lib_suffix
}
ENV curlPath
${
_CURL_LIBRARY_DIRS
}
PATHS
/usr/lib /usr/local/lib /opt/local/lib /sw/lib
PATH_SUFFIXES
lib
${
_lib_suffix
}
lib
libs
${
_lib_suffix
}
libs
bin
${
_lib_suffix
}
bin
../lib
${
_lib_suffix
}
../lib
../libs
${
_lib_suffix
}
../libs
../bin
${
_lib_suffix
}
../bin
"build/Win
${
_lib_suffix
}
/VC12/DLL Release - DLL Windows SSPI"
"../build/Win
${
_lib_suffix
}
/VC12/DLL Release - DLL Windows SSPI"
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
Libcurl DEFAULT_MSG CURL_LIB CURL_INCLUDE_DIR
)
mark_as_advanced
(
CURL_INCLUDE_DIR CURL_LIB
)
if
(
LIBCURL_FOUND
)
set
(
LIBCURL_INCLUDE_DIRS
${
CURL_INCLUDE_DIR
}
)
set
(
LIBCURL_LIBRARIES
${
CURL_LIB
}
)
endif
()
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录