Skip to content

Commit

Permalink
Remove unneeded cmake hackery for installing scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
gdevenyi committed Sep 15, 2019
1 parent 4b0c2c8 commit ccd51a5
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 44 deletions.
27 changes: 27 additions & 0 deletions ANTS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,30 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/ANTsVersionConfig.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/ANTsVersionConfig.h" @ONLY IMMEDIATE)

add_subdirectory(Examples)

install(PROGRAMS Scripts/ANTSpexec.sh
Scripts/antsASLProcessing.sh
Scripts/antsAtroposN4.sh
Scripts/antsBOLDNetworkAnalysis.R
Scripts/antsBrainExtraction.sh
Scripts/antsCorticalThickness.sh
Scripts/antsIntermodalityIntrasubject.sh
Scripts/antsIntroduction.sh
Scripts/antsLaplacianBoundaryCondition.R
Scripts/antsLongitudinalCorticalThickness.sh
Scripts/antsJointLabelFusion.sh
Scripts/antsMultivariateTemplateConstruction.sh
Scripts/antsMultivariateTemplateConstruction2.sh
Scripts/antsNetworkAnalysis.R
Scripts/antsNeuroimagingBattery
Scripts/antsRegistrationSyN.sh
Scripts/antsRegistrationSyNQuick.sh
Scripts/waitForPBSQJobs.pl
Scripts/waitForSGEQJobs.pl
Scripts/waitForXGridJobs.pl
Scripts/waitForSlurmJobs.pl
DESTINATION bin
PERMISSIONS OWNER_WRITE OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
CONFIGURATIONS Release
COMPONENT SCRIPTS
)
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ mark_as_advanced(${LOCAL_PROJECT_NAME}_USE_QT)
option(${LOCAL_PROJECT_NAME}_INSTALL_DEVELOPMENT "Install development support include and libraries for external packages." OFF)
mark_as_advanced(${LOCAL_PROJECT_NAME}_INSTALL_DEVELOPMENT)

option(COPY_SCRIPT_FILES_TO_BIN_DIR "Copy the script files to the ANTS bin directory." OFF)
mark_as_advanced(COPY_SCRIPT_FILES_TO_BIN_DIR)

#-----------------------------------------------------------------------------
# Superbuild script
#-----------------------------------------------------------------------------
Expand Down
41 changes: 0 additions & 41 deletions Examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -188,47 +188,6 @@ foreach(ANTS_APP ${VTK_ANTS_APPS})
endforeach()
endif()

install(PROGRAMS ../Scripts/ANTSpexec.sh
../Scripts/antsASLProcessing.sh
../Scripts/antsAtroposN4.sh
../Scripts/antsBOLDNetworkAnalysis.R
../Scripts/antsBrainExtraction.sh
../Scripts/antsCorticalThickness.sh
../Scripts/antsIntermodalityIntrasubject.sh
../Scripts/antsIntroduction.sh
../Scripts/antsLaplacianBoundaryCondition.R
../Scripts/antsLongitudinalCorticalThickness.sh
../Scripts/antsJointLabelFusion.sh
../Scripts/antsMultivariateTemplateConstruction.sh
../Scripts/antsMultivariateTemplateConstruction2.sh
../Scripts/antsNetworkAnalysis.R
../Scripts/antsNeuroimagingBattery
../Scripts/antsRegistrationSyN.sh
../Scripts/antsRegistrationSyNQuick.sh
../Scripts/waitForPBSQJobs.pl
../Scripts/waitForSGEQJobs.pl
../Scripts/waitForXGridJobs.pl
../Scripts/waitForSlurmJobs.pl
DESTINATION bin
PERMISSIONS OWNER_WRITE OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
CONFIGURATIONS Release
COMPONENT SCRIPTS
)

if( COPY_SCRIPT_FILES_TO_BIN_DIR )
message( "-- Copy scripts." )
file( GLOB SCRIPT_FILES "../Scripts/*.sh" )
file( GLOB PSCRIPT_FILES "../Scripts/*.pl" )
foreach( SCRIPT_FILE ${SCRIPT_FILES} )
message( " Copying ${SCRIPT_FILE} to ${CMAKE_CURRENT_BINARY_DIR}/../../bin/" )
configure_file( ${SCRIPT_FILE} ${CMAKE_CURRENT_BINARY_DIR}/../../bin/ COPYONLY )
endforeach()
foreach( SCRIPT_FILE ${PSCRIPT_FILES} )
message( " Copying ${SCRIPT_FILE} to ${CMAKE_CURRENT_BINARY_DIR}/../../bin/" )
configure_file( ${SCRIPT_FILE} ${CMAKE_CURRENT_BINARY_DIR}/../../bin/ COPYONLY )
endforeach()
endif()

## Build test option
if(BUILD_TESTING)
add_subdirectory(TestSuite)
Expand Down

0 comments on commit ccd51a5

Please sign in to comment.