Simplify build system for unit tests.
authorTeemu Murtola <teemu.murtola@gmail.com>
Wed, 9 May 2012 08:11:06 +0000 (11:11 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Wed, 9 May 2012 08:37:51 +0000 (11:37 +0300)
commit1da6b49ab0fd482d3aec663e27bb61e8d88271b5
treecee15fd3d85963c61862a69d51c421ddea13f8a0
parentfbe82f8de5cca3d0fe670664e307fec2fd760530
Simplify build system for unit tests.

- Now that gtest and gmock are build from bundled sources, there should
  be no reason to allow disabling just gmock from the tests (at least
  not strong enough reason compared to the complexity it brings to
  writing the tests and maintaining the build system).
- Make libxml2 mandatory for building any unit tests.  Again,
  simplifies the build system significantly.  Even before this change,
  very few of the unit tests were built without libxml2.

Closes #935.

Change-Id: I8ec5552661860ca43a00d70957fd82d69dcdf739
17 files changed:
CMakeLists.txt
src/CMakeLists.txt
src/external/gmock-1.6.0/CMakeLists.txt
src/gromacs/analysisdata/tests/CMakeLists.txt
src/gromacs/commandline/tests/CMakeLists.txt
src/gromacs/options/tests/CMakeLists.txt
src/gromacs/selection/tests/CMakeLists.txt
src/gromacs/utility/tests/CMakeLists.txt
src/testutils/CMakeLists.txt
src/testutils/TestMacros.cmake
src/testutils/datapath.h
src/testutils/refdata-common.cpp [deleted file]
src/testutils/refdata.cpp
src/testutils/refdata.h
src/testutils/test_main_gtest.cpp [deleted file]
src/testutils/tests/CMakeLists.txt
src/testutils/unittest_main.cpp [moved from src/testutils/test_main_gmock.cpp with 100% similarity]