CMake - add header files to lib project (and to VS project).
This commit is contained in:
parent
786c8b558c
commit
488ea55358
|
@ -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})
|
||||
|
||||
|
|
Loading…
Reference in New Issue