mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 07:04:39 +00:00
Upstream StaticAnalysis looks to be changing for more flexibility with source files to process. While these changes may eventually benefit argparse, the public interfaces are in flux and we need a stable tool. argparse also needs a SA change which is not yet upstream. Trying to run clang-tidy via StaticAnalysis on a single file in a directory with many source file is not easy, so move the analysis kernel to a location (i.e. tools) where it is the only C++ source file. Another benefit is cppcheck no longer needs to be told to ignore the test sources. Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
11 lines
331 B
CMake
11 lines
331 B
CMake
cmake_minimum_required(VERSION 3.12)
|
|
project(argparse)
|
|
|
|
file(GLOB ARGPARSE_LINT_SOURCES
|
|
tidy-base.cpp
|
|
)
|
|
ADD_EXECUTABLE(ARGPARSE_LINT ${ARGPARSE_LINT_SOURCES})
|
|
set_target_properties(ARGPARSE_LINT PROPERTIES OUTPUT_NAME tidy-base)
|
|
set_property(TARGET ARGPARSE_LINT PROPERTY CXX_STANDARD 17)
|
|
INCLUDE_DIRECTORIES("../include" ".")
|