From 747bb84d27518ba1ab0c49d619a812b43222fdcf Mon Sep 17 00:00:00 2001 From: Kevin Rocard Date: Wed, 11 Mar 2015 11:46:32 +0100 Subject: Modularise build using cmake options The parameter framework can build lots of components including but not limited to core c++ lib, c api, python api, bash completion... All those modules are not always wanted, especially if they have external dependencies as it force the builder to install them. Conditionally define non core build modules. The builder can disable feature by providing -D =OFF to deactivate them. The following options are available: - PYTHON_BINDINGS: Break swig dependencies - BASH_COMPLETION: If the target does not have bash - COVERAGE: Default to off, set to on to build c/c++ with coverage flags. Signed-off-by: Kevin Rocard --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 92def31..0e954f4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,7 @@ script: make && sudo make install ) - ( cd build && - cmake -DCMAKE_BUILD_TYPE=Debug .. && + cmake -DCMAKE_BUILD_TYPE=Debug -DCOVERAGE=ON .. && make -j && sudo make install && CTEST_OUTPUT_ON_FAILURE=1 make ExperimentalTest ExperimentalCoverage ExperimentalMemCheck ) -- cgit v1.1