X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=CMakeLists.txt;h=d8217f0805c17e1e8447e691f99c0f1d018b2a11;hb=caf2219d302e8554f3b9bf39ab94f736e8427ef6;hp=cab79f2c7ba53270c05161a6be5107c681bfdf32;hpb=fd0f1940d4b11f582fc237ff5ccf2c385eaa0e7d;p=awesomized%2Flibmemcached diff --git a/CMakeLists.txt b/CMakeLists.txt index cab79f2c..d8217f08 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,8 @@ 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(CXX_STANDARD 11) @@ -16,9 +17,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 @@ -40,14 +43,13 @@ if(NOT BUILD_DOCSONLY) 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) -endif() - -if(BUILD_DOCS OR BUILD_DOCSONLY) - add_subdirectory(docs) + configure_file(${CONFIGURE_FILE_IN} ${CONFIGURE_FILE_OUT} @ONLY) + include(CPack.txt) endif() if(ENV{INVALID_CONFIGURATION})