From: David Sarrut Date: Fri, 26 Jul 2013 06:47:54 +0000 (+0200) Subject: Add clitkMergeRootFiles X-Git-Tag: v1.4.0~164^2~17 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=0c56fa9705f9abdc98db8e0da1933ad3e5a3e192;p=clitk.git Add clitkMergeRootFiles --- diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 878688e..2b55fbe 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -292,6 +292,26 @@ IF (CLITK_BUILD_TOOLS) ADD_EXECUTABLE(clitkMergeAsciiDoseActor clitkMergeAsciiDoseActor.cxx ${clitkMergeAsciiDoseActor_GGO_C}) TARGET_LINK_LIBRARIES(clitkMergeAsciiDoseActor ITKCommon clitkCommon) + #========================================================= + option(CLITK_USE_ROOT "Build experimental tools using root" OFF) + if (CLITK_USE_ROOT) + FIND_PACKAGE(ROOT REQUIRED) + if(ROOT_FOUND) + MESSAGE(STATUS "ROOT found : ${ROOT_LIBRARY_DIR} ${ROOT_INCLUDE_DIR} ${ROOT_LIBRARIES}") + ELSE(ROOT_FOUND) + MESSAGE(FATAL_ERROR + "Cannot build without ROOT. Please set ROOTSYS environement variable.") + endif(ROOT_FOUND) + INCLUDE_DIRECTORIES(${ROOT_INCLUDE_DIR}) + LINK_DIRECTORIES(${ROOT_LIBRARY_DIR}) + WRAP_GGO(clitkMergeRootFiles_GGO_C clitkMergeRootFiles.ggo) + ADD_EXECUTABLE(clitkMergeRootFiles clitkMergeRootFiles.cxx GateMergeManager.cc ${clitkMergeRootFiles_GGO_C}) + TARGET_LINK_LIBRARIES(clitkMergeRootFiles ${ROOT_LIBRARIES}) + endif() + #========================================================= + + + #========================================================= IF(CLITK_EXPERIMENTAL) WRAP_GGO(clitkBinaryImageToMesh_GGO_C clitkBinaryImageToMesh.ggo) ADD_EXECUTABLE(clitkBinaryImageToMesh clitkBinaryImageToMesh.cxx ${clitkBinaryImageToMesh_GGO_C}) @@ -308,7 +328,10 @@ IF (CLITK_BUILD_TOOLS) TARGET_LINK_LIBRARIES(clitkMeshViewer clitkCommon) SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkMeshViewer) ENDIF(CLITK_EXPERIMENTAL) + #========================================================= + + #========================================================= IF(ITK_VERSION_MAJOR VERSION_LESS 4) MESSAGE("clitkDicomRTPlan2Gate is not compatible with GDCM<2 (ITK<4). It will not be built.") ELSE(ITK_VERSION_MAJOR VERSION_LESS 4) @@ -317,6 +340,8 @@ IF (CLITK_BUILD_TOOLS) TARGET_LINK_LIBRARIES(clitkDicomRTPlan2Gate clitkCommon) SET(TOOLS_INSTALL ${TOOLS_INSTALL} clitkDicomRTPlan2Gate) ENDIF(ITK_VERSION_MAJOR VERSION_LESS 4) + #========================================================= + INSTALL (TARGETS ${TOOLS_INSTALL} DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)