-
Notifications
You must be signed in to change notification settings - Fork 0
/
statusnotifier-gen.cmake
92 lines (80 loc) · 2.29 KB
/
statusnotifier-gen.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
cmake_minimum_required( VERSION 2.8.12 )
find_file(DLFCN_H NAMES dlfcn.h PATHS /usr/include)
if(NOT "${DLFCN_H}" STREQUAL "DLFCN_H-NOTFOUND")
set(HAVE_DLFCN_H 1)
else()
set(HAVE_DLFCN_H 0)
endif()
find_file(INTTYPES_H NAMES inttypes.h PATHS /usr/include)
if(NOT "${INTTYPES_H}" STREQUAL "INTTYPES_H-NOTFOUND")
set(HAVE_INTTYPES_H 1)
else()
set(HAVE_INTTYPES_H 0)
endif()
find_file(MEMORY_H NAMES memory.h PATHS /usr/include)
if(NOT "${MEMORY_H}" STREQUAL "MEMORY_H-NOTFOUND")
set(HAVE_MEMORY_H 1)
else()
set(HAVE_MEMORY_H 0)
endif()
find_file(STDINT_H NAMES stdint.h PATHS /usr/include)
if(NOT "${STDINT_H}" STREQUAL "STDINT_H-NOTFOUND")
set(HAVE_STDINT_H 1)
else()
set(HAVE_STDINT_H 0)
endif()
find_file(STDLIB_H NAMES stdlib.h PATHS /usr/include)
if(NOT "${STDLIB_H}" STREQUAL "STDLIB_H-NOTFOUND")
set(HAVE_STDLIB_H 1)
else()
set(HAVE_STDLIB_H 0)
endif()
find_file(STRINGS_H NAMES strings.h PATHS /usr/include)
if(NOT "${STRINGS_H}" STREQUAL "STRINGS_H-NOTFOUND")
set(HAVE_STRINGS_H 1)
else()
set(HAVE_STRINGS_H 0)
endif()
find_file(STRING_H NAMES string.h PATHS /usr/include)
if(NOT "${STRING_H}" STREQUAL "STRING_H-NOTFOUND")
set(HAVE_STRING_H 1)
else()
set(HAVE_STRING_H 0)
endif()
find_file(SYS_STAT_H NAMES stat.h PATHS /usr/include
PATH_SUFFIXES
x86_64-linux-gnu/sys
i386-linux-gnu/sys
/sys)
if(NOT "${SYS_STAT_H}" STREQUAL "SYS_STAT_H-NOTFOUND")
set(HAVE_SYS_STAT_H 1)
else()
set(HAVE_SYS_STAT_H 0)
endif()
find_file(SYS_TYPES_H NAMES types.h PATHS /usr/include
PATH_SUFFIXES
x86_64-linux-gnu/sys
i386-linux-gnu/sys
/sys)
if(NOT "${SYS_TYPES_H}" STREQUAL "SYS_TYPES_H-NOTFOUND")
set(HAVE_SYS_TYPES_H 1)
else()
set(HAVE_SYS_TYPES_H 0)
endif()
find_file(UNISTD_H NAMES unistd.h PATHS /usr/include)
if(NOT "${UNISTD_H}" STREQUAL "UNISTD_H-NOTFOUND")
set(HAVE_UNISTD_H 1)
else()
set(HAVE_UNISTD_H 0)
endif()
set(PKG_NAME "statusnotifier")
set(PACKAGE "${PKG_NAME}")
set(PACKAGE_BUGREPORT "jjk@jjacky.com")
set(PACKAGE_NAME "${PKG_NAME}")
set(PACKAGE_VERSION "1.0.0")
set(PACKAGE_STRING "${PKG_NAME} ${PACKAGE_VERSION}")
set(PACKAGE_TARNAME "${PKG_NAME}")
set(PACKAGE_URL "")
set(STDC_HEADERS 1)
set(VERSION "${PACKAGE_VERSION}")
configure_file(config.h.in config.h @ONLY)