CMake - Include test project when creating VS IDE project.

This commit is contained in:
Kimmo Varis 2010-01-05 22:11:48 +02:00
parent 13f627d0d5
commit 4c2a77db9b
1 changed files with 9 additions and 5 deletions

View File

@ -17,12 +17,16 @@ PROJECT(CPPCHECK)
ADD_SUBDIRECTORY(lib)
ADD_SUBDIRECTORY(cli)
# Exclude tests from normal targets
# There is 'make check' -target for compiling and running tests
# Exclude tests from command line targets but include them to VS IDE targets.
# There is 'make check' -target for compiling and running tests from
# command line.
IF (MSVC_IDE)
ADD_SUBDIRECTORY(test)
ELSE (MSVC_IDE)
ADD_SUBDIRECTORY(test EXCLUDE_FROM_ALL)
ENDIF (MSVC_IDE)
# Don't build GUI for Cygwin (most installations don't have QT)
IF (NOT CYGWIN)
ADD_SUBDIRECTORY(gui)
endif (NOT CYGWIN)
ENDIF (NOT CYGWIN)