cppcheck/lib/CMakeLists.txt

62 lines
1.1 KiB
CMake
Raw Normal View History

# Minimal CMake build file to build static cppcheck library
# This static library is used to build executables:
# - cli
# - tests
# - Qt GUI
SET(CHECKLIB_HDRS
check.h
checkautovariables.h
checkbufferoverrun.h
checkclass.h
checkdangerousfunctions.h
checkexceptionsafety.h
checkheaders.h
checkmemoryleak.h
checkother.h
checkstl.h
checkunusedfunctions.h
classinfo.h
cppcheck.h
errorlogger.h
executionpath.h
filelister.h
mathlib.h
preprocessor.h
settings.h
token.h
tokenize.h
)
SET(CHECKLIB_SRCS
checkautovariables.cpp
checkbufferoverrun.cpp
checkclass.cpp
checkdangerousfunctions.cpp
checkexceptionsafety.cpp
checkheaders.cpp
checkmemoryleak.cpp
checkother.cpp
checkstl.cpp
checkunusedfunctions.cpp
cppcheck.cpp
errorlogger.cpp
2009-12-17 19:19:55 +01:00
executionpath.cpp
filelister.cpp
mathlib.cpp
preprocessor.cpp
settings.cpp
token.cpp
tokenize.cpp
)
if (CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS
${CMAKE_CXX_FLAGS}
"-Wall -Wextra -pedantic"
)
endif (CMAKE_COMPILER_IS_GNUCXX)
ADD_LIBRARY(checklib STATIC ${CHECKLIB_SRCS} ${CHECKLIB_HDRS})