diff --git a/cli/CMakeLists.txt b/cli/CMakeLists.txt index 1fa7dbd9c..eb1c4f839 100644 --- a/cli/CMakeLists.txt +++ b/cli/CMakeLists.txt @@ -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})