Changeset 3005
- Timestamp:
- 10/16/14 12:35:03 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CMakeLists.txt
r3004 r3005 20 20 message( STATUS "PKSMS = " ${PKSMS} ) 21 21 22 # Use casapy's fork of casacore 22 # Use casapy's fork of casacore 23 23 if ( NOT STANDALONE ) 24 24 add_definitions( -DUSE_CASAPY ) … … 46 46 47 47 # 48 # build type and their flags 48 # build type and their flags 49 49 # 50 50 # CMAKE_BUILD_TYPE (Release, Debug, RelWithDebInfo, MinSizeRel, Profile) … … 119 119 set( DEFAULT_CXX_FLAGS "${DEFAULT_CXX_FLAGS} -arch ${archflag}" ) 120 120 endif() 121 endif() 121 endif() 122 122 elseif( CMAKE_SYSTEM_NAME STREQUAL Linux ) 123 123 set( SO so ) … … 179 179 # use casacore libraries 180 180 set( _includename casa/aipsdef.h ) 181 find_path( CASACORE_INCLUDE_DIR ${_includename} 181 find_path( CASACORE_INCLUDE_DIR ${_includename} 182 182 PATHS ${CASACORE_PATHS} 183 PATH_SUFFIXES include include/casacore 183 PATH_SUFFIXES include include/casacore 184 184 NO_DEFAULT_PATH ) 185 185 find_path( CASACORE_INCLUDE_DIR ${_includename} ) … … 204 204 unset( _casacore_lib CACHE ) 205 205 find_library( _casacore_lib ${_libname} 206 PATHS ${CASACORE_PATHS} 206 PATHS ${CASACORE_PATHS} 207 207 PATH_SUFFIXES lib64 lib ) 208 208 if( _casacore_lib MATCHES "NOTFOUND$" ) … … 217 217 # use libcasacore 218 218 set( _libname libcasacore.${SO} ) 219 find_library( CASACORE_LIBRARIES ${_libname} 219 find_library( CASACORE_LIBRARIES ${_libname} 220 220 PATHS ${CASACORE_PATHS} 221 221 PATH_SUFFIXES lib64 lib ) … … 229 229 PATH_SUFFIXES include include/casacore 230 230 NO_DEFAULT_PATH ) 231 find_path( CASACORE_INCLUDE_DIR ${_includename} 231 find_path( CASACORE_INCLUDE_DIR ${_includename} 232 232 PATHS ${CASACORE_PATHS} 233 PATH_SUFFIXES include include/casacore 234 NO_DEFAULT_PATH ) 235 find_path( CASACORE_INCLUDE_DIR ${_includename} ) 233 PATH_SUFFIXES include include/casacore 234 NO_DEFAULT_PATH ) 235 find_path( CASACORE_INCLUDE_DIR ${_includename} ) 236 236 if( CASACORE_INCLUDE_DIR MATCHES "NOTFOUND$" ) 237 237 message( FATAL_ERROR "${_includename} could not be found. Please check!" ) … … 258 258 string( REGEX MATCH [0-9].[0-9] PYTHONV ${PYTHON_INCLUDE_DIRS} ) 259 259 string( REPLACE "." "" PV ${PYTHONV} ) 260 find_path( NUMPY_INCLUDE_DIR numpy/npy_interrupt.h 260 find_path( NUMPY_INCLUDE_DIR numpy/npy_interrupt.h 261 261 PATHS 262 ${pyroot}/lib/python${PYTHONV}/site-packages/numpy/core 263 ${pyroot}/Library/Frameworks/Python.framework/Versions/${PYTHONV} 264 ${pyroot}/Library/Frameworks/Python.framework/Versions/${PYTHONV}/lib/python${PYTHONV}/site-packages/numpy/core 262 ${pyroot}/lib/python${PYTHONV}/site-packages/numpy/core 263 ${pyroot}/Library/Frameworks/Python.framework/Versions/${PYTHONV} 264 ${pyroot}/Library/Frameworks/Python.framework/Versions/${PYTHONV}/lib/python${PYTHONV}/site-packages/numpy/core 265 265 PATH_SUFFIXES include ) 266 266 if( NUMPY_INCLUDE_DIR MATCHES "NOTFOUND$" ) … … 288 288 foreach( _v ${_names} ) 289 289 290 casa_find( 290 casa_find( 291 291 PYTHON${_v} 292 292 #PREFIX_HINTS ${PYTHON_ROOT_DIR} 293 LIBS python${_v} 294 NO_REQUIRE 293 LIBS python${_v} 294 NO_REQUIRE 295 295 ) 296 296 … … 318 318 set( python_library python${PYTHON_LIBNAME} ) 319 319 320 # Form the Python install prefix by stripping away "lib/libpython2.5.2.dylib" (example) from 320 # Form the Python install prefix by stripping away "lib/libpython2.5.2.dylib" (example) from 321 321 # the full python library path 322 322 string( REGEX MATCH "/lib(64)?/lib${python_library}" _match ${PYTHON${PYTHON_LIBNAME}_LIBRARIES} ) … … 343 343 casa_find( PYTHON 344 344 VERSION 2.5 # minimum required 345 INCLUDES Python.h 345 INCLUDES Python.h 346 346 numpy/npy_interrupt.h # for numpy 347 347 INCLUDES_SUFFIXES python${PYTHONV} 348 PREFIX_HINTS 348 PREFIX_HINTS 349 349 ${python_prefix}/lib/python${PYTHONV}/site-packages/numpy/core 350 350 ${python_prefix}/Library/Frameworks/Python.framework/Versions/${PYTHONV} … … 399 399 message( FATAL_ERROR "lapack could not be found. Please check!" ) 400 400 endif() 401 message( STATUS "LAPACK_LIBRARIES = " ${LAPACK_LIBRARIES} ) 401 message( STATUS "LAPACK_LIBRARIES = " ${LAPACK_LIBRARIES} ) 402 402 403 403 … … 433 433 NO_DEFAULT_PATH ) 434 434 if( CFITSIO_LIBRARIES MATCHES "NOTFOUND$" ) 435 find_library( CFITSIO_LIBRARIES libcfitsio.a 435 find_library( CFITSIO_LIBRARIES libcfitsio.a 436 436 PATHS ${CFITSIO_ROOT} 437 437 PATH_SUFFIXES lib64 lib 438 438 NO_DEFAULT_PATH ) 439 439 endif() 440 find_library( CFITSIO_LIBRARIES libcfitsio.${SO} 440 find_library( CFITSIO_LIBRARIES libcfitsio.${SO} 441 441 PATHS /usr/local /usr 442 442 PATH_SUFFIXES lib64 lib ) … … 491 491 CACHE STRING "Fortran library linker option" FORCE ) 492 492 else() 493 set( FORTRAN_LIBRARIES -lgfortran 493 set( FORTRAN_LIBRARIES -lgfortran 494 494 CACHE STRING "Fortran library linker option" FORCE ) 495 495 endif() … … 546 546 # RPFITS 547 547 # 548 if ( STANDALONE ) 548 if ( STANDALONE ) 549 549 find_path( RPFITS_INCLUDE_DIRS RPFITS.h 550 550 PATHS /usr/local /usr … … 583 583 message( STATUS "${_wcslib} could not be found." ) 584 584 unset( _wcslib CACHE ) 585 unset( WCSLIB CACHE ) 585 unset( WCSLIB CACHE ) 586 586 set( _wcslib libwcs.${_wcs_version}.${SO} ) 587 587 message( STATUS "Try to find ${_wcslib}..." ) 588 find_library( WCSLIB ${_wcslib} 588 find_library( WCSLIB ${_wcslib} 589 589 PATHS ${WCSLIB_PATHS} 590 590 PATH_SUFFIXES lib64 lib ) … … 606 606 # common include path 607 607 # 608 include_directories( ${CASACORE_INCLUDE_DIR} 609 ${Boost_INCLUDE_DIR} 610 ${X11_INCLUDE_DIRS} 611 ${PGPLOT_INCLUDE_DIRS} 612 ${PYTHON_INCLUDE_DIRS} 613 ${WCSLIB_INCLUDE_DIR} 614 ${CFITSIO_INCLUDE_DIRS} 608 include_directories( ${CASACORE_INCLUDE_DIR} 609 ${Boost_INCLUDE_DIR} 610 ${X11_INCLUDE_DIRS} 611 ${PGPLOT_INCLUDE_DIRS} 612 ${PYTHON_INCLUDE_DIRS} 613 ${WCSLIB_INCLUDE_DIR} 614 ${CFITSIO_INCLUDE_DIRS} 615 615 ${RPFITS_INCLUDE_DIRS} ) 616 616
Note:
See TracChangeset
for help on using the changeset viewer.