[Insight-developers] ITK v4: Best practice for adding test data?
Brad King
brad.king at kitware.com
Mon Jun 13 12:37:20 EDT 2011
On 06/11/2011 05:05 PM, Johnson, Hans J wrote:
> CMake Warning: The variable, 'ExternalData_LINK_CONTENT', specified manually, was not used during the generation.
> -- Build files have been written to: /Users/johnsonhj/Dashboards/src/ITK-gcc-4.2
Ignore this warning. This variable is not the permanent interface to turn on
this feature.
> diff --git a/Modules/Numerics/FEM/test/CMakeLists.txt b/Modules/Numerics/FEM/test/CMakeLists.txt
> index a802055..259dbdc 100644
> --- a/Modules/Numerics/FEM/test/CMakeLists.txt
> +++ b/Modules/Numerics/FEM/test/CMakeLists.txt
> @@ -109,65 +109,65 @@ itk_add_test(NAME itkFEMPArrayTest
> # 3D Element Tests
> add_test(NAME itkFEMC0HexahedralElement-NodalLoads-BCs
> COMMAND ITK-FEMTestDriver itkFEMElement3DTest
> - ${ITK_DATA_ROOT}/Input/FEM/hexa2.meta)
> + DATA{Input/FEM/hexa2.meta})
There are at least two problems:
(1) The DATA{} syntax only works inside itk_add_test.
(2) The path inside DATA{} should be a full path or relative to the CMakeLists.txt
file containing it, not to the top of the data directory.
-Brad
More information about the Insight-developers
mailing list