CMake - add header files to CLI project and VS project.
This commit is contained in:
parent
488ea55358
commit
5912035696
|
@ -1,5 +1,10 @@
|
||||||
# Minimal CMake build file to build cppcheck command line executable
|
# Minimal CMake build file to build cppcheck command line executable
|
||||||
|
|
||||||
|
SET(CHECKCLI_HDRS
|
||||||
|
cppcheckexecutor.h
|
||||||
|
threadexecutor.h
|
||||||
|
)
|
||||||
|
|
||||||
SET(CHECKCLI_SRCS
|
SET(CHECKCLI_SRCS
|
||||||
cppcheckexecutor.cpp
|
cppcheckexecutor.cpp
|
||||||
threadexecutor.cpp
|
threadexecutor.cpp
|
||||||
|
@ -8,6 +13,11 @@ SET(CHECKCLI_SRCS
|
||||||
|
|
||||||
# Add Windows resource file
|
# Add Windows resource file
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
|
SET(CHECKCLI_HDRS
|
||||||
|
${CHECKCLI_HDRS}
|
||||||
|
resource.h
|
||||||
|
)
|
||||||
|
|
||||||
SET(CHECKCLI_SRCS
|
SET(CHECKCLI_SRCS
|
||||||
${CHECKCLI_SRCS}
|
${CHECKCLI_SRCS}
|
||||||
cppcheck.rc
|
cppcheck.rc
|
||||||
|
@ -35,6 +45,6 @@ if (CMAKE_COMPILER_IS_GNUCXX)
|
||||||
endif (CMAKE_COMPILER_IS_GNUCXX)
|
endif (CMAKE_COMPILER_IS_GNUCXX)
|
||||||
|
|
||||||
include_directories (${CPPCHECK_SOURCE_DIR}/lib)
|
include_directories (${CPPCHECK_SOURCE_DIR}/lib)
|
||||||
ADD_EXECUTABLE(cppcheck ${CHECKCLI_SRCS})
|
ADD_EXECUTABLE(cppcheck ${CHECKCLI_SRCS} ${CHECKCLI_HDRS})
|
||||||
TARGET_LINK_LIBRARIES(cppcheck ${CHECK_LIBS})
|
TARGET_LINK_LIBRARIES(cppcheck ${CHECK_LIBS})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue