ENH: Refactor test/CMakeLists.txt to adhere to ITK module convention#900
ENH: Refactor test/CMakeLists.txt to adhere to ITK module convention#900axel-grc wants to merge 2 commits intoRTKConsortium:mainfrom
Conversation
|
There is a problem with the example tests: with the ITK convention, tests are dispatched by the test driver and must provide an entrypoint like int (int,char**). The examples are standalone programs with a main(), and I don’t think it’s a good idea to rewrite their main just to fit the test driver pattern. For now, I kept the previous approach only for examples: build each example as its own executable and register it with CTest via itkTestDriver. Do you have any insight on this, @SimonRit |
I'm not following. This seems to be the convention of a |
1b84313 to
65201ef
Compare
c2d8f2f to
cef2b26
Compare
bc85954 to
c615189
Compare
281abe3 to
efd77ce
Compare
- Changed the main function in various test files to specific test function names. - Updated the CMakeLists of tests to follow itk convention with createtestdriver
5ab04b8 to
2b9158f
Compare
26b633d to
67075f4
Compare
6d28822 to
be79fd6
Compare
e6422c7 to
df93c4d
Compare
05c2ca1 to
17d47e8
Compare
The problem is caused by the explicit definition of templated parents in Cuda filters. The parents are now explicitely instantiated to avoid this problem. The code is based on explicit template instantiation in ITK, e.g., MINCTransformIOTemplate. Note that two Cuda filters based on ITK filters have been left out: CudaCropImageFilter and CudaWarpImageFilter.
Close #896