2 #========================================================================
3 # Creates a directory if it does not exist
5 IF(NOT IS_DIRECTORY ${DIR})
6 MESSAGE(STATUS "* Creating directory '${DIR}'")
7 FILE(MAKE_DIRECTORY ${DIR})
8 ENDIF(NOT IS_DIRECTORY ${DIR})
10 #========================================================================
12 #========================================================================
13 # COPIES A DIRECTORY EXCLUDING CVS ENTRIES
14 MACRO(CREA_CPDIR SOURCE DEST)
15 FILE(GLOB_RECURSE NAMES RELATIVE ${SOURCE} ${SOURCE}/*)
16 FOREACH( NAME ${NAMES})
17 STRING(SUBSTRING ${NAME} 0 3 subStrTmp )
18 IF( NOT subStrTmp STREQUAL "../" )
19 STRING(REGEX MATCH "CVS" CVSSUBS_FOUND ${NAME} )
20 IF( NOT CVSSUBS_FOUND STREQUAL "CVS" )
25 ENDIF( NOT CVSSUBS_FOUND STREQUAL "CVS" )
26 ENDIF( NOT subStrTmp STREQUAL "../" )
29 #========================================================================