HDFS-9737: libhdfs++: Create examples of consuming libhdfs++. Contributed by Bob Hansen
This commit is contained in:
parent
7e946c7e30
commit
71b4f2ea25
|
@ -124,6 +124,7 @@ include_directories( SYSTEM
|
||||||
add_subdirectory(third_party/gmock-1.7.0)
|
add_subdirectory(third_party/gmock-1.7.0)
|
||||||
add_subdirectory(lib)
|
add_subdirectory(lib)
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
|
add_subdirectory(examples)
|
||||||
|
|
||||||
# create an empty file; hadoop_add_dual_library wraps add_library which
|
# create an empty file; hadoop_add_dual_library wraps add_library which
|
||||||
# requires at least one file as an argument
|
# requires at least one file as an argument
|
||||||
|
@ -170,3 +171,9 @@ install(FILES ${LIBHDFS_HEADER_FILES} DESTINATION /include/hdfs)
|
||||||
|
|
||||||
install(TARGETS hdfspp_static ARCHIVE DESTINATION /lib)
|
install(TARGETS hdfspp_static ARCHIVE DESTINATION /lib)
|
||||||
install(TARGETS hdfspp LIBRARY DESTINATION /lib)
|
install(TARGETS hdfspp LIBRARY DESTINATION /lib)
|
||||||
|
|
||||||
|
add_custom_target(
|
||||||
|
InstallToBuildDirectory
|
||||||
|
COMMAND "${CMAKE_MAKE_PROGRAM}" install DESTDIR=${PROJECT_BINARY_DIR}/output
|
||||||
|
)
|
||||||
|
set(LIBHDFSPP_DIR ${PROJECT_BINARY_DIR}/output)
|
||||||
|
|
|
@ -50,7 +50,9 @@
|
||||||
* Keep C bindings that are libhdfs++ specific in here.
|
* Keep C bindings that are libhdfs++ specific in here.
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
#endif
|
||||||
/**
|
/**
|
||||||
* Reads the last error, if any, that happened in this thread
|
* Reads the last error, if any, that happened in this thread
|
||||||
* into the user supplied buffer.
|
* into the user supplied buffer.
|
||||||
|
@ -108,5 +110,8 @@ int hdfsBuilderConfGetStr(struct hdfsBuilder *bld, const char *key,
|
||||||
*/
|
*/
|
||||||
int hdfsBuilderConfGetInt(struct hdfsBuilder *bld, const char *key, int32_t *val);
|
int hdfsBuilderConfGetInt(struct hdfsBuilder *bld, const char *key, int32_t *val);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
} /* end extern "C" */
|
} /* end extern "C" */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue