Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
lcr
提交
49e47d4b
L
lcr
项目概览
openeuler
/
lcr
通知
3
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
lcr
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
49e47d4b
编写于
7月 07, 2020
作者:
H
haozi007
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
improve ut manager
Signed-off-by:
N
haozi007
<
liuhao27@huawei.com
>
上级
6ea0a426
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
23 addition
and
17 deletion
+23
-17
CMakeLists.txt
CMakeLists.txt
+5
-1
cmake/checker.cmake
cmake/checker.cmake
+16
-14
lcr.spec
lcr.spec
+2
-2
未找到文件。
CMakeLists.txt
浏览文件 @
49e47d4b
...
...
@@ -33,6 +33,8 @@ if (DEBUG STREQUAL "ON")
add_definitions
(
"-g -o2"
)
endif
()
option
(
ENABLE_UT
"enable ut"
OFF
)
include
(
cmake/set_build_flags.cmake
)
...
...
@@ -86,7 +88,9 @@ add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/third_party)
add_subdirectory
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/src
)
# ut and gcoverage
add_subdirectory
(
tests
)
if
(
ENABLE_UT
)
add_subdirectory
(
tests
)
endif
()
# install all files
install
(
FILES
${
CMAKE_BINARY_DIR
}
/conf/lcr.pc
...
...
cmake/checker.cmake
浏览文件 @
49e47d4b
...
...
@@ -69,21 +69,23 @@ find_library(LIBYAJL_LIBRARY yajl
HINTS
${
PC_LIBYAJL_LIBDIR
}
${
PC_LIBYAJL_LIBRARY_DIRS
}
)
_CHECK
(
LIBYAJL_LIBRARY
"LIBYAJL_LIBRARY-NOTFOUND"
"libyajl.so"
)
pkg_check_modules
(
PC_GTEST
"gtest"
)
find_path
(
GTEST_INCLUDE_DIR gtest/gtest.h
HINTS
${
PC_GTEST_INCLUDEDIR
}
${
PC_GTEST_INCLUDE_DIRS
}
)
_CHECK
(
GTEST_INCLUDE_DIR
"GTEST_INCLUDE_DIR-NOTFOUND"
"gtest.h"
)
find_library
(
GTEST_LIBRARY gtest
HINTS
${
PC_GTEST_LIBDIR
}
${
PC_GTEST_LIBRARY_DIRS
}
)
_CHECK
(
GTEST_LIBRARY
"GTEST_LIBRARY-NOTFOUND"
"libgtest.so"
)
if
(
ENABLE_UT
)
pkg_check_modules
(
PC_GTEST
"gtest"
)
find_path
(
GTEST_INCLUDE_DIR gtest/gtest.h
HINTS
${
PC_GTEST_INCLUDEDIR
}
${
PC_GTEST_INCLUDE_DIRS
}
)
_CHECK
(
GTEST_INCLUDE_DIR
"GTEST_INCLUDE_DIR-NOTFOUND"
"gtest.h"
)
find_library
(
GTEST_LIBRARY gtest
HINTS
${
PC_GTEST_LIBDIR
}
${
PC_GTEST_LIBRARY_DIRS
}
)
_CHECK
(
GTEST_LIBRARY
"GTEST_LIBRARY-NOTFOUND"
"libgtest.so"
)
pkg_check_modules
(
PC_GMOCK
"gmock"
)
find_path
(
GMOCK_INCLUDE_DIR gmock/gmock.h
HINTS
${
PC_GMOCK_INCLUDEDIR
}
${
PC_GMOCK_INCLUDE_DIRS
}
)
_CHECK
(
GMOCK_INCLUDE_DIR
"GMOCK_INCLUDE_DIR-NOTFOUND"
"gmock.h"
)
find_library
(
GMOCK_LIBRARY z
HINTS
${
PC_GMOCK_LIBDIR
}
${
PC_GMOCK_LIBRARY_DIRS
}
)
_CHECK
(
GMOCK_LIBRARY
"GMOCK_LIBRARY-NOTFOUND"
"libgmock.so"
)
pkg_check_modules
(
PC_GMOCK
"gmock"
)
find_path
(
GMOCK_INCLUDE_DIR gmock/gmock.h
HINTS
${
PC_GMOCK_INCLUDEDIR
}
${
PC_GMOCK_INCLUDE_DIRS
}
)
_CHECK
(
GMOCK_INCLUDE_DIR
"GMOCK_INCLUDE_DIR-NOTFOUND"
"gmock.h"
)
find_library
(
GMOCK_LIBRARY z
HINTS
${
PC_GMOCK_LIBDIR
}
${
PC_GMOCK_LIBRARY_DIRS
}
)
_CHECK
(
GMOCK_LIBRARY
"GMOCK_LIBRARY-NOTFOUND"
"libgmock.so"
)
endif
()
if
(
ENABLE_GCOV
)
find_program
(
CMD_GCOV gcov
)
...
...
lcr.spec
浏览文件 @
49e47d4b
%global _version 2.0.2
%global _release 20200
609.145938.gita2be0373
%global _release 20200
707.190329.git615e13a5
%global _inner_name isula_libutils
Name: lcr
...
...
@@ -55,7 +55,7 @@ the %{name}-libs package contains libraries for running iSula applications.
%build
mkdir -p build
cd build
%cmake -DDEBUG=OFF -DLIB_INSTALL_DIR=%{_libdir} ../
%cmake -DDEBUG=OFF -D
ENABLE_UT=ON -D
LIB_INSTALL_DIR=%{_libdir} ../
%make_build
%install
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录