X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=CMakeLists.txt;h=7dc13f1190ed68d4f0cc613843cf6a647f4e3d65;hb=cf49439d85021e56d5e326e0312e16e8736bf685;hp=18278f63f4824a6d47a07f2078d87ec4bf2ba935;hpb=09b40d9007ee169a18be67dd95e6114b53cbb88d;p=awesomized%2Flibmemcached diff --git a/CMakeLists.txt b/CMakeLists.txt index 18278f63..7dc13f11 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,17 +8,21 @@ include(CMakeVersions.txt) project(libmemcached VERSION "${LIBMEMCACHED_VERSION}" - DESCRIPTION "libmemcached https://github.com/m6w6/libmemcached" + HOMEPAGE_URL "https://github.com/m6w6/libmemcached" + DESCRIPTION "libmemcached, a C/C++ memcached client library" ) +set(PROJECT_CONTACT "Michael Wallner ") set(CXX_STANDARD 11) set(CMAKE_POSITION_INDEPENDENT_CODE ON) include(CMakeConfig.txt) -if(NOT BUILD_DOCSONLY) +if(BUILD_DOCS OR BUILD_DOCSONLY) + add_subdirectory(docs) +endif() - set(AUTOHEADER_FILE mem_config.h) +if(NOT BUILD_DOCSONLY) set(CLIENTS memcapable @@ -36,18 +40,37 @@ if(NOT BUILD_DOCSONLY) memtouch ) - add_subdirectory(include) add_subdirectory(src) + add_subdirectory(contrib) + add_subdirectory(include) add_subdirectory(support) + + # tests need c++17 support add_subdirectory(test) # keep last - configure_file(src/mem_config.h.in ${AUTOHEADER_FILE} @ONLY) + configure_file(${CONFIGURE_FILE_IN} ${CONFIGURE_FILE_OUT} @ONLY) endif() -if(BUILD_DOCS OR BUILD_DOCSONLY) - add_subdirectory(docs) -endif() +include(CPack.txt) + +install(FILES + AUTHORS + BUGS.md + ChangeLog + ChangeLog-0.md + ChangeLog-1.0.md + ChangeLog-1.1.md + ChangeLog.md + CONTRIBUTING.md + COPYING + LICENSE + NEWS + README.md + TODO + COMPONENT doc + DESTINATION ${CMAKE_INSTALL_DOCDIR}/ + ) if(ENV{INVALID_CONFIGURATION}) message(FATAL_ERROR "invalid configuration -- giving up")