[Insight-developers] ITKModular Regression: Changing locations for libraries

Bill Lorensen bill.lorensen at gmail.com
Mon Mar 21 12:58:38 EDT 2011


This may or may not be relted top the move to ITK Modular.

Prior to modularization, this cmake snippet from
Modules/Core/Common/test/CMakeLists.txt:
if(ITK_BUILD_SHARED_LIBS)
  ## Create a library to test ITK loadable factories
  set(FactoryTest_Source itkFactoryTestLib.cxx)
  set(LIBRARY_OUTPUT_PATH "${ITKTesting_BINARY_DIR}/Temporary")
  add_library(FactoryTestLib SHARED ${FactoryTest_Source})
  target_link_libraries(FactoryTestLib ITKCommon)
  add_dependencies(CommonCxxTests FactoryTestLib)
endif(ITK_BUILD_SHARED_LIBS)

placed the shared lib in the "${ITKTesting_BINARY_DIR}/Temporary" directory

now I need:
if(ITK_BUILD_SHARED_LIBS)
  ## Create a library to test ITK loadable factories
  set(FactoryTest_Source itkFactoryTestLib.cxx)
  add_library(FactoryTestLib SHARED ${FactoryTest_Source})
  target_link_libraries(FactoryTestLib ${ITK-Common_LIBRARIES})
  set_property(TARGET FactoryTestLib PROPERTY LIBRARY_OUTPUT_DIRECTORY
${ITK_BINARY_DIR}/Testing/Temporary)
  set_property(TARGET FactoryTestLib PROPERTY RUNTIME_OUTPUT_DIRECTORY
${ITK_BINARY_DIR}/Testing/Temporary)
  set_property(TARGET FactoryTestLib PROPERTY ARCHIVE_OUTPUT_DIRECTORY
${ITK_BINARY_DIR}/Testing/Temporary)
  add_dependencies(ITK-Common-tests2 FactoryTestLib)
endif(ITK_BUILD_SHARED_LIBS)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110321/4384c3ed/attachment.htm>


More information about the Insight-developers mailing list