CMake - add header files to lib project (and to VS project).

This commit is contained in:
Kimmo Varis 2010-01-03 21:08:49 +02:00
parent 786c8b558c
commit 488ea55358
1 changed files with 25 additions and 1 deletions

View File

@ -4,6 +4,30 @@
# - 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
@ -33,5 +57,5 @@ if (CMAKE_COMPILER_IS_GNUCXX)
)
endif (CMAKE_COMPILER_IS_GNUCXX)
ADD_LIBRARY(checklib STATIC ${CHECKLIB_SRCS})
ADD_LIBRARY(checklib STATIC ${CHECKLIB_SRCS} ${CHECKLIB_HDRS})