diff --git a/CMakeLists.txt b/CMakeLists.txt index 079ba77..bfe7e44 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,18 +21,16 @@ cmake_minimum_required(VERSION 3.2) -include(GNUInstallDirs) string(REPLACE "/${CMAKE_LIBRARY_ARCHITECTURE}" "" CMAKE_INSTALL_LIBDIR_ARCHIND "${CMAKE_INSTALL_LIBDIR}") - set(ARGS_MAIN_PROJECT OFF) if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) set(ARGS_MAIN_PROJECT ON) endif() -project(args CXX) -set(PROJECT_DESCRIPTION "A simple, small, flexible, single-header C++11 argument parsing library. that is designed to appear somewhat similar to Python's argparse.") -set(PROJECT_HOMEPAGE_URL "https://github.com/Taywee/args") -set(PROJECT_VERSION 6.4.2) + +project(args LANGUAGES CXX VERSION 6.4.3 DESCRIPTION "A flexible single-header C++11 argument parsing library that is designed to appear somewhat similar to Python's argparse" HOMEPAGE_URL "https://github.com/Taywee/args") + +include(GNUInstallDirs) option(ARGS_BUILD_EXAMPLE "Build example" ON) option(ARGS_BUILD_UNITTESTS "Build unittests" ON) @@ -46,12 +44,16 @@ target_include_directories(args INTERFACE $) if(ARGS_MAIN_PROJECT) + include(CMakePackageConfigHelpers) install(FILES args.hxx DESTINATION include) install(TARGETS args EXPORT args-targets) install(EXPORT args-targets FILE args-config.cmake NAMESPACE taywee:: DESTINATION lib/cmake/args) + + write_basic_package_version_file("${CMAKE_CURRENT_BINARY_DIR}/args-config-version.cmake" COMPATIBILITY SameMajorVersion ARCH_INDEPENDENT) + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/args-config-version.cmake" DESTINATION lib/cmake/args) endif() if (ARGS_BUILD_EXAMPLE) diff --git a/Doxyfile b/Doxyfile index eed6e95..db12239 100644 --- a/Doxyfile +++ b/Doxyfile @@ -38,7 +38,7 @@ PROJECT_NAME = "args" # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = 6.4.2 +PROJECT_NUMBER = 6.4.3 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a diff --git a/args.hxx b/args.hxx index ebcb0d4..d3967f8 100644 --- a/args.hxx +++ b/args.hxx @@ -33,10 +33,10 @@ #ifndef ARGS_HXX #define ARGS_HXX -#define ARGS_VERSION "6.4.2" +#define ARGS_VERSION "6.4.3" #define ARGS_VERSION_MAJOR 6 #define ARGS_VERSION_MINOR 4 -#define ARGS_VERSION_PATCH 2 +#define ARGS_VERSION_PATCH 3 #include #include diff --git a/conanfile.py b/conanfile.py index 01d944b..f5d2404 100644 --- a/conanfile.py +++ b/conanfile.py @@ -2,7 +2,7 @@ class ArgsConan(ConanFile): name = "args" - version = "6.4.2" + version = "6.4.3" url = "https://github.com/Taywee/args" description = "A simple header-only C++ argument parser library." license = "MIT" diff --git a/meson.build b/meson.build index ef45b74..bfc9adc 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('args.hxx', ['cpp'], - version: '6.4.2', + version: '6.4.3', default_options: 'cpp_std=c++11', license: 'MIT' )