Skip to content

Commit 84ea43f

Browse files
添加头文件
1 parent 411f080 commit 84ea43f

File tree

8 files changed

+2634
-6
lines changed

8 files changed

+2634
-6
lines changed

CMakeLists.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ project (DLMS
66
LANGUAGES CXX
77
)
88

9-
109
# Linux 分布式监控系统
1110
set (CPACK_PACKAGE_NAME DLMS)
1211
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Distributed Linux monitoring system")
@@ -15,17 +14,19 @@ set (CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
1514
set (CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
1615
set (CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
1716

18-
19-
2017
message(STATUS ${CPACK_PACKAGE_VERSION})
2118

2219

20+
add_subdirectory(3rd/glog)
2321

2422

23+
add_executable(dlms src/dlms/dlms.cpp)
24+
target_include_directories(dlms
25+
PUBLIC inc
26+
PUBLIC src/dlms)
2527

26-
27-
add_subdirectory(3rd/glog)
28-
28+
target_link_libraries(dlms
29+
PUBLIC glog)
2930

3031

3132

inc/glog/export.h

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
2+
#ifndef GOOGLE_GLOG_DLL_DECL_H
3+
#define GOOGLE_GLOG_DLL_DECL_H
4+
5+
#ifdef GLOG_STATIC_DEFINE
6+
# define GOOGLE_GLOG_DLL_DECL
7+
# define GLOG_NO_EXPORT
8+
#else
9+
# ifndef GOOGLE_GLOG_DLL_DECL
10+
# ifdef GOOGLE_GLOG_IS_A_DLL
11+
/* We are building this library */
12+
# define GOOGLE_GLOG_DLL_DECL
13+
# else
14+
/* We are using this library */
15+
# define GOOGLE_GLOG_DLL_DECL
16+
# endif
17+
# endif
18+
19+
# ifndef GLOG_NO_EXPORT
20+
# define GLOG_NO_EXPORT
21+
# endif
22+
#endif
23+
24+
#ifndef GLOG_DEPRECATED
25+
# define GLOG_DEPRECATED __attribute__ ((__deprecated__))
26+
#endif
27+
28+
#ifndef GLOG_DEPRECATED_EXPORT
29+
# define GLOG_DEPRECATED_EXPORT GOOGLE_GLOG_DLL_DECL GLOG_DEPRECATED
30+
#endif
31+
32+
#ifndef GLOG_DEPRECATED_NO_EXPORT
33+
# define GLOG_DEPRECATED_NO_EXPORT GLOG_NO_EXPORT GLOG_DEPRECATED
34+
#endif
35+
36+
#if 0 /* DEFINE_NO_DEPRECATED */
37+
# ifndef GLOG_NO_DEPRECATED
38+
# define GLOG_NO_DEPRECATED
39+
# endif
40+
#endif
41+
42+
#endif /* GOOGLE_GLOG_DLL_DECL_H */

0 commit comments

Comments
 (0)