cppcheck/CMakeLists.txt
Kimmo Varis eb8c6aec55 CMake - add 'make check' -target.
Tests are now excluded from normal targets to make compiling
faster. 'make check' -target will compile and run tests.
2009-12-20 11:16:56 +02:00

29 lines
576 B
CMake

# Minimal CMake build file
# Builds:
# - static library from lib directory
# - commandline executable
# - test suite
# - Qt GUI
# To build with CMake:
# - install CMake 2.6 or later
# - $ cmake .
# - $ make
cmake_minimum_required (VERSION 2.6)
PROJECT(CPPCHECK)
ADD_SUBDIRECTORY(lib)
ADD_SUBDIRECTORY(cli)
# Exclude tests from normal targets
# There is 'make check' -target for compiling and running tests
ADD_SUBDIRECTORY(test EXCLUDE_FROM_ALL)
# Don't build GUI for Cygwin (most installations don't have QT)
IF (NOT CYGWIN)
ADD_SUBDIRECTORY(gui)
endif (NOT CYGWIN)