[Insight-developers] Can I make a program in Examples depend on whether

Williams, Norman K norman-k-williams at uiowa.edu
Mon Aug 22 15:12:08 EDT 2011


I tried adding the following to ITK/Testing/IO/CMakeLists.txt

if(Module_ITKDeprecated)
  add_executable(ConvertAnalyzeFile ConvertAnalyzeFile.cxx)
  target_link_libraries(ConvertAnalyzeFile ${ITK_LIBRARIES})
endif(Module_ITKDeprecated)

But it seemed like Module_ITKDeprecated is true when ITK_BUILD_ALL_MODULES
is turned on.

Is there a better way to test for this?  I don't think any of the Example
programs are guarded agains including unbuilt modules.

--
Kent Williams norman-k-williams at uiowa.edu






________________________________
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