Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Obs Studio
提交
9e8a2e33
O
Obs Studio
项目概览
小白菜888
/
Obs Studio
通知
4
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Obs Studio
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9e8a2e33
编写于
9月 07, 2017
作者:
J
jp9000
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cmake: Add helper module for finding Lua
This is mostly for win32-specific files
上级
10207584
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
84 addition
and
0 deletion
+84
-0
cmake/Modules/FindLuajit.cmake
cmake/Modules/FindLuajit.cmake
+84
-0
未找到文件。
cmake/Modules/FindLuajit.cmake
0 → 100644
浏览文件 @
9e8a2e33
# Once done these will be defined:
#
# LUAJIT_FOUND
# LUAJIT_INCLUDE_DIRS
# LUAJIT_LIBRARIES
#
# For use in OBS:
#
# LUAJIT_INCLUDE_DIR
IF
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
SET
(
_LIB_SUFFIX 64
)
ELSE
()
SET
(
_LIB_SUFFIX 32
)
ENDIF
()
FIND_PATH
(
LUAJIT_INCLUDE_DIR
NAMES lua.h
HINTS
ENV LuajitPath
${
_LIB_SUFFIX
}
ENV LuajitPath
ENV DepsPath
${
_LIB_SUFFIX
}
ENV DepsPath
${
LuajitPath
${
_LIB_SUFFIX
}}
${
LuajitPath
}
${
DepsPath
${
_LIB_SUFFIX
}}
${
DepsPath
}
${
_LUAJIT_INCLUDE_DIRS
}
PATHS
/usr/include
/usr/local/include
/opt/local/include
/opt/local
/sw/include
~/Library/Frameworks
/Library/Frameworks
PATH_SUFFIXES
include
luajit
luajit/src
include/luajit
include/luajit/src
luajit-2.0
include/luajit-2.0
luajit2.0
include/luajit2.0
)
find_library
(
LUAJIT_LIB
NAMES
${
_LUAJIT_LIBRARIES
}
luajit luajit-51 luajit-5.1
HINTS
ENV LuajitPath
${
_lib_suffix
}
ENV LuajitPath
ENV DepsPath
${
_lib_suffix
}
ENV DepsPath
${
LuajitPath
${
_lib_suffix
}}
${
LuajitPath
}
${
DepsPath
${
_lib_suffix
}}
${
DepsPath
}
${
_LUAJIT_LIBRARY_DIRS
}
PATHS
/usr/lib
/usr/local/lib
/opt/local/lib
/opt/local
/sw/lib
~/Library/Frameworks
/Library/Frameworks
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
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
Luajit DEFAULT_MSG LUAJIT_LIB LUAJIT_INCLUDE_DIR
)
mark_as_advanced
(
LUAJIT_INCLUDE_DIR LUAJIT_LIB
)
if
(
LUAJIT_FOUND
)
set
(
LUAJIT_INCLUDE_DIRS
${
LUAJIT_INCLUDE_DIR
}
)
set
(
LUAJIT_LIBRARIES
${
LUAJIT_LIB
}
)
endif
()
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录