Changeset 1991
- Timestamp:
- 02/15/11 14:48:52 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cmake/withcasa.cmake
r1976 r1991 3 3 ### 4 4 5 6 # install directory7 # set casaroot8 # the regular expression means '../'9 # [^ ] Matches any character(s) not inside the brackets10 # + Matches preceding pattern one or more times11 # ? Matches preceding pattern zero or once only12 # $ Mathces at end of a line13 string( REGEX REPLACE /[^/]+/?$ "" casaroot ${CMAKE_SOURCE_DIR} )14 message( STATUS "casaroot = " ${casaroot} )15 16 # modules17 set( CMAKE_MODULE_PATH ${casaroot}/code/install )18 include( config )19 include( CASA )20 5 21 6 # environment dependent settings … … 57 42 message( STATUS "arch = " ${arch} ) 58 43 59 # set root directory for installation 60 set( CMAKE_INSTALL_PREFIX ${casaroot}/${arch} ) 44 # install directory 45 # 46 # The layout of the source+install directory trees 47 # is rather hard-coded in much source code. However, 48 # with care CASA can be built and installed elsewhere... 49 # 50 IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) 51 # the regular expression means '../' 52 # [^ ] Matches any character(s) not inside the brackets 53 # + Matches preceding pattern one or more times 54 # ? Matches preceding pattern zero or once only 55 # $ Mathces at end of a line 56 string( REGEX REPLACE /[^/]+/?$ "" casaroot ${CMAKE_SOURCE_DIR} ) 57 set( CMAKE_INSTALL_PREFIX ${casaroot}/${arch} ) 58 ELSE() 59 set( casaroot ${CMAKE_INSTALL_PREFIX}/.. ) 60 ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) 61 61 62 message( STATUS "casaroot = " ${casaroot} ) 63 64 # modules 65 IF ( EXISTS ${casaroot}/code/install ) 66 set( CMAKE_MODULE_PATH ${casaroot}/code/install ) 67 ELSE() 68 set( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/../code/install ) 69 ENDIF() 70 71 72 include( config ) 73 include( CASA ) 62 74 63 75 #
Note:
See TracChangeset
for help on using the changeset viewer.