From a753c41cedb0fc29718c00c4aa556943ffd07332 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Tue, 5 Jan 2010 22:16:53 +0200 Subject: [PATCH] CMake - Include test project's header file to VS IDE project. --- test/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index c29472fa9..5f8d59caa 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,5 +1,9 @@ # Minimal CMake build file to build cppcheck test suite +SET(CHECKTEST_HDRS + testsuite.h +) + SET(CHECKTEST_SRCS testmemleak.cpp testother.cpp @@ -49,7 +53,7 @@ if (CMAKE_COMPILER_IS_GNUCXX) endif (CMAKE_COMPILER_IS_GNUCXX) include_directories (${CPPCHECK_SOURCE_DIR}/lib) -ADD_EXECUTABLE(test ${CHECKTEST_SRCS}) +ADD_EXECUTABLE(test ${CHECKTEST_SRCS} ${CHECKTEST_HDRS}) TARGET_LINK_LIBRARIES(test ${CHECK_LIBS}) # Add custom 'make check' -target