2009-12-12 19:38:49 +01:00
|
|
|
# Minimal CMake build file to build cppcheck command line executable
|
|
|
|
|
|
|
|
SET(CHECKCLI_SRCS
|
|
|
|
cppcheckexecutor.cpp
|
|
|
|
threadexecutor.cpp
|
|
|
|
main.cpp
|
|
|
|
)
|
|
|
|
|
2009-12-17 21:31:13 +01:00
|
|
|
# Windows needs additional shlwapi library
|
|
|
|
if (WIN32 AND NOT CYGWIN)
|
|
|
|
set(CHECK_LIBS
|
|
|
|
checklib
|
|
|
|
shlwapi
|
|
|
|
)
|
|
|
|
else (WIN32 AND NOT CYGWIN)
|
|
|
|
set(CHECK_LIBS
|
|
|
|
checklib
|
|
|
|
)
|
|
|
|
endif (WIN32 AND NOT CYGWIN)
|
|
|
|
|
2009-12-12 19:38:49 +01:00
|
|
|
include_directories (${CPPCHECK_SOURCE_DIR}/lib)
|
|
|
|
ADD_EXECUTABLE(cppcheck ${CHECKCLI_SRCS})
|
2009-12-17 21:31:13 +01:00
|
|
|
TARGET_LINK_LIBRARIES(cppcheck ${CHECK_LIBS})
|
2009-12-12 19:38:49 +01:00
|
|
|
|