#project(SegPostProcessCLP)

set(SegPostProcessCLP_SOURCE SegPostProcessCLP.cxx )
GENERATECLP(SegPostProcessCLP_SOURCE SegPostProcessCLP.xml)
add_executable(SegPostProcessCLP ${SegPostProcessCLP_SOURCE})

target_link_libraries(SegPostProcessCLP ${ITK_LIBRARIES})

install(TARGETS
  SegPostProcessCLP
  BUNDLE DESTINATION  bin
  RUNTIME DESTINATION bin
  LIBRARY DESTINATION lib
  ARCHIVE DESTINATION lib/static  )

#project(SegPostProcessCLP)

set( CLP SegPostProcessCLP )

set(${CLP}_SOURCE ${CLP}.cxx )
GENERATECLP(${CLP}_SOURCE ${CLP}.xml)
add_executable(${CLP} ${${CLP}_SOURCE})
target_link_libraries(${CLP} ${ITK_LIBRARIES})

add_library(${CLP}Lib STATIC ${${CLP}_SOURCE})
set_target_properties (${CLP}Lib PROPERTIES COMPILE_FLAGS "-Dmain=ModuleEntryPoint")
target_link_libraries(${CLP}Lib ${ITK_LIBRARIES})

install(TARGETS
  SegPostProcessCLP
  BUNDLE DESTINATION  bin
  RUNTIME DESTINATION bin
  LIBRARY DESTINATION lib
  ARCHIVE DESTINATION lib/static  )

Add ctest for GenParaMeshCLP and SegPostProcessCLP
Add ctest for GenParaMeshCLP and SegPostProcessCLP
