CMake - add header files to CLI project and VS project.

This commit is contained in:
Kimmo Varis 2010-01-03 21:13:30 +02:00
parent 488ea55358
commit 5912035696
1 changed files with 11 additions and 1 deletions

View File

@ -1,5 +1,10 @@
# Minimal CMake build file to build cppcheck command line executable
SET(CHECKCLI_HDRS
cppcheckexecutor.h
threadexecutor.h
)
SET(CHECKCLI_SRCS
cppcheckexecutor.cpp
threadexecutor.cpp
@ -8,6 +13,11 @@ SET(CHECKCLI_SRCS
# Add Windows resource file
if (WIN32)
SET(CHECKCLI_HDRS
${CHECKCLI_HDRS}
resource.h
)
SET(CHECKCLI_SRCS
${CHECKCLI_SRCS}
cppcheck.rc
@ -35,6 +45,6 @@ if (CMAKE_COMPILER_IS_GNUCXX)
endif (CMAKE_COMPILER_IS_GNUCXX)
include_directories (${CPPCHECK_SOURCE_DIR}/lib)
ADD_EXECUTABLE(cppcheck ${CHECKCLI_SRCS})
ADD_EXECUTABLE(cppcheck ${CHECKCLI_SRCS} ${CHECKCLI_HDRS})
TARGET_LINK_LIBRARIES(cppcheck ${CHECK_LIBS})