Add gmxapi_extension tests to 'tests' target.
authorM. Eric Irrgang <ericirrgang@gmail.com>
Wed, 6 Nov 2019 15:07:56 +0000 (18:07 +0300)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 27 Nov 2019 10:00:05 +0000 (11:00 +0100)
Improve GMX_PYTHON_PACKAGE convenience targets. When GMX_PYTHON_PACKAGE
is ON, the subprojects in the python_packaging subdirectory are built.
When testing is enabled, the sample_restraint C++ unit tests were
transitively included in the 'check' target, but no mechanism was in
place to ensure they were built before the CTests and google tests
were run. This change adds the test binaries as dependencies of the
'tests' target so that the test binaries are built through normal
machinery when GROMACS is built with testing enabled and
GMX_PYTHON_PACKAGE=ON.

Change-Id: I751655dc6b6d4d58b5bbb9f5f522e26382b4f0a2

python_packaging/sample_restraint/tests/CMakeGROMACS.txt

index a12dedbaef12e4ba6322bc9798c7a2da973877c7..acc960830bf3cad7c55d74fd041ba7fff924726e 100644 (file)
@@ -29,4 +29,6 @@ add_custom_target(gmxapi_extension_pytest
 # The current test fixtures require the `gmx` tool-wrapper executable.
 add_dependencies(gmxapi_extension_pytest gmx)
 
+add_dependencies(tests gmxapi_extension_histogram-test gmxapi_extension_bounding-test)
+
 add_dependencies(check gmxapi_extension_pytest)