forked from ElektraInitiative/libelektra
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
27 lines (21 loc) · 761 Bytes
/
CMakeLists.txt
File metadata and controls
27 lines (21 loc) · 761 Bytes
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
include (CheckSymbolExists)
check_symbol_exists (__GNU_LIBRARY__ "features.h" HAVE_GLIBC)
if (NOT BUILD_SHARED)
exclude_binding (intercept_env "intercept_env only works with BUILD_SHARED")
elseif (NOT HAVE_GLIBC)
exclude_binding (intercept_env "intercept_env currently needs glibc")
else ()
add_binding (intercept_env)
add_subdirectory (include)
include_directories (include)
set (NAME elektrify-getenv)
generate_readme (${NAME})
generate_man_page (kdb-${NAME} FILENAME ${CMAKE_CURRENT_SOURCE_DIR}/README.md COMPONENT elektra-bin)
include_directories (${CMAKE_CURRENT_BINARY_DIR})
add_subdirectory (src)
add_subdirectory (examples)
add_subdirectory (benchmarks)
if (ENABLE_TESTING)
add_subdirectory (tests)
endif (ENABLE_TESTING)
endif ()