cppcheck/cli/CMakeLists.txt

25 lines
477 B
CMake
Raw Normal View History

# 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)
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})