Computer Assited Medical Intervention Tool Kit  version 4.1
GetDirectoryName.h
Go to the documentation of this file.
1 get_directory_name(){ FullPathDirectory VariableName)
15  string (REGEX REPLACE ".*/([^/]*)$" "\\1" ${VariableName} ${FullPathDirectory})
16 
17  # set the variable name to uppercase
18  string(TOUPPER ${${VariableName}} ${VariableName}_CMAKE)
19 end(){)
get_directory_name()
macro get_directory_name set the variable VariableName to the name of the last directory of FullPathD...
Definition: GetDirectoryName.h:14