mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-11-30 10:18:40 +00:00
🧰 Linting and maintenance (#120)
* some manual fixes to obtain * fairly close enough * whitespace fixes * add comment * adding clang format + applied * add editorconfig (supported natively by github web editor) * apply linting to project * clean up CI workflows * zap vcpkg folder actual one is here https://github.com/microsoft/vcpkg/tree/master/ports/jwt-cpp * adding a logo * thin the lines in the pluses * use logo + more links to spec and examples * Create lint.yml * apply linting
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
set(COVERAGE_CMAKE "${CMAKE_BINARY_DIR}/cmake/CodeCoverage.cmake")
|
||||
if(NOT EXISTS ${COVERAGE_CMAKE})
|
||||
set(COVERAGE_URL
|
||||
"https://raw.githubusercontent.com/bilke/cmake-modules/master/CodeCoverage.cmake"
|
||||
)
|
||||
set(COVERAGE_URL "https://raw.githubusercontent.com/bilke/cmake-modules/master/CodeCoverage.cmake")
|
||||
file(DOWNLOAD ${COVERAGE_URL} ${COVERAGE_CMAKE})
|
||||
endif()
|
||||
|
||||
include(${COVERAGE_CMAKE})
|
||||
|
||||
function(setup_coverage TARGET)
|
||||
target_compile_options(${TARGET} PRIVATE -g -O0 -fprofile-arcs
|
||||
-ftest-coverage)
|
||||
target_compile_options(${TARGET} PRIVATE -g -O0 -fprofile-arcs -ftest-coverage)
|
||||
target_link_libraries(${TARGET} PRIVATE gcov)
|
||||
endfunction()
|
||||
|
||||
Reference in New Issue
Block a user