[Insight-developers] ITK v4: Best practice for adding test data?

Johnson, Hans J hans-johnson at uiowa.edu
Mon Jun 13 13:10:43 EDT 2011


Brad,

Thanks!  Those changes did make a significant change in the behavior.  I'm
now onto the next set of problems.

We are now working on the next encountered problem.

Hans

--
Hans J. Johnson, Ph.D.
hans-johnson at uiowa.edu
Assistant Professor of Psychiatry
University of Iowa Carver College of Medicine
W278 GH, 200 Hawkins Drive

Iowa City, Iowa 52242
Phone:  319-353-8587







-----Original Message-----
From: Brad King <brad.king at kitware.com>
Date: Mon, 13 Jun 2011 12:37:20 -0400
To: Hans Johnson <hans-johnson at uiowa.edu>
Cc: ITK <insight-developers at itk.org>
Subject: Re: [Insight-developers] ITK v4: Best practice for adding test
data?

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



________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
________________________________


More information about the Insight-developers mailing list