2009-12-12 19:38:49 +01:00
|
|
|
# Minimal CMake build file
|
2009-12-14 16:21:32 +01:00
|
|
|
# Builds:
|
|
|
|
# - static library from lib directory
|
|
|
|
# - commandline executable
|
|
|
|
# - test suite
|
2009-12-14 17:43:44 +01:00
|
|
|
# - Qt GUI
|
2009-12-12 19:38:49 +01:00
|
|
|
|
|
|
|
# To build with CMake:
|
|
|
|
# - install CMake 2.6 or later
|
|
|
|
# - $ cmake .
|
|
|
|
# - $ make
|
|
|
|
|
|
|
|
cmake_minimum_required (VERSION 2.6)
|
|
|
|
|
|
|
|
PROJECT(CPPCHECK)
|
|
|
|
|
2010-01-31 11:36:56 +01:00
|
|
|
# Building lib as static library is disabled due to bug
|
|
|
|
# #1299 CMake: The CheckClass is not used
|
|
|
|
# https://sourceforge.net/apps/trac/cppcheck/ticket/1299
|
|
|
|
# Instead lib code is included directly into cli and gui targets
|
|
|
|
# ADD_SUBDIRECTORY(lib)
|
|
|
|
|
2009-12-12 19:38:49 +01:00
|
|
|
ADD_SUBDIRECTORY(cli)
|
2009-12-20 10:16:56 +01:00
|
|
|
|
2010-01-05 21:11:48 +01:00
|
|
|
# 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)
|
2009-12-12 19:38:49 +01:00
|
|
|
|
2010-01-25 23:19:02 +01:00
|
|
|
ADD_SUBDIRECTORY(gui)
|
2010-01-06 11:54:27 +01:00
|
|
|
ADD_SUBDIRECTORY(man)
|