cppcheck/test/CMakeLists.txt

48 lines
925 B
CMake
Raw Normal View History

2009-12-14 16:21:32 +01:00
# Minimal CMake build file to build cppcheck test suite
SET(CHECKTEST_SRCS
testmemleak.cpp
testother.cpp
testpreprocessor.cpp
testautovariables.cpp
testredundantif.cpp
testbufferoverrun.cpp
testrunner.cpp
testcharvar.cpp
testsimplifytokens.cpp
testclass.cpp
teststl.cpp
testconstructors.cpp
testsuite.cpp
testcppcheck.cpp
testdangerousfunctions.cpp
testtoken.cpp
testdivision.cpp
testtokenize.cpp
testexceptionsafety.cpp
testunusedfunctions.cpp
testfilelister.cpp
testunusedprivfunc.cpp
testincompletestatement.cpp
testunusedvar.cpp
testmathlib.cpp
)
# Libraries to link
2009-12-17 21:31:13 +01:00
set(CHECK_LIBS
checklib
)
# Windows needs additional shlwapi library
if (WIN32 AND NOT CYGWIN)
2009-12-17 21:31:13 +01:00
set(CHECK_LIBS
${CHECK_LIBS}
shlwapi
2009-12-17 21:31:13 +01:00
)
endif (WIN32 AND NOT CYGWIN)
2009-12-14 16:21:32 +01:00
include_directories (${CPPCHECK_SOURCE_DIR}/lib)
ADD_EXECUTABLE(test ${CHECKTEST_SRCS})
2009-12-17 21:31:13 +01:00
TARGET_LINK_LIBRARIES(test ${CHECK_LIBS})
2009-12-14 16:21:32 +01:00