Skip to content
Snippets Groups Projects
Commit a2942967 authored by Ger van Diepen's avatar Ger van Diepen
Browse files

bug 1389:

Added macros to find packages casacore can depend on
parent 999de168
Branches
Tags
No related merge requests found
......@@ -190,8 +190,12 @@ CEP/ParmDB/test/tsetupsourcedb.in_ms2.vds -text
CEP/Pipeline/bootstrap -text
CEP/Pipeline/library/lioff.clusterdesc -text
CEP/Pipeline/library/makevds.bash -text
CMake/FindBlas.cmake -text
CMake/FindBlitz.cmake -text
CMake/FindCPPLapack.cmake -text
CMake/FindCfitsio.cmake -text
CMake/FindLapack.cmake -text
CMake/FindWcslib.cmake -text
CMake/TODO -text
CMake/makeCMakeCache -text
CMake/makeversion -text
......
# $Id: FindBlas.cmake 13814 2009-08-20 11:55:06Z loose $
#
# Copyright (C) 2008-2009
# ASTRON (Netherlands Foundation for Research in Astronomy)
# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands, seg@astron.nl
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Try to find Blas.
#
# This will define:
#
# BLAS_FOUND - system has Blas
# BLAS_INCLUDE_DIR - undefined
# BLAS_INCLUDE_DIRS -
# (identical to BLAS_INCLUDE_DIR)
# BLAS_LIBRARY - the Blas library (cached)
# BLAS_LIBRARIES - the Blas libraries
# (identical to BLAS_LIBRARY)
if(NOT BLAS_FOUND)
find_library(BLAS_LIBRARY blas)
mark_as_advanced(BLAS_LIBRARY)
include(FindPackageHandleStandardArgs)
set(custom_msg "Could NOT find Blas in ${CMAKE_PREFIX_PATH}")
find_package_handle_standard_args(Blas "${custom_msg}"
BLAS_LIBRARY)
set(BLAS_LIBRARIES ${BLAS_LIBRARY})
endif(NOT BLAS_FOUND)
# $Id: FindCfitsio.cmake 13814 2009-08-20 11:55:06Z loose $
#
# Copyright (C) 2008-2009
# ASTRON (Netherlands Foundation for Research in Astronomy)
# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands, seg@astron.nl
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Try to find Cfitsio.
#
# This will define:
#
# CFITSIO_FOUND - system has Cfitsio
# CFITSIO_INCLUDE_DIR - the Cfitsio include directory (cached)
# CFITSIO_INCLUDE_DIRS - the Cfitsio include directories
# (identical to CFITSIO_INCLUDE_DIR)
# CFITSIO_LIBRARY - the Cfitsio library (cached)
# CFITSIO_LIBRARIES - the Cfitsio libraries
# (identical to CFITSIO_LIBRARY)
if(NOT CFITSIO_FOUND)
find_path(CFITSIO_INCLUDE_DIR fitsio.h)
find_library(CFITSIO_LIBRARY cfitsio)
mark_as_advanced(CFITSIO_INCLUDE_DIR CFITSIO_LIBRARY)
include(FindPackageHandleStandardArgs)
set(custom_msg "Could NOT find Cfitsio in ${CMAKE_PREFIX_PATH}")
find_package_handle_standard_args(Cfitsio "${custom_msg}"
CFITSIO_LIBRARY CFITSIO_INCLUDE_DIR)
set(CFITSIO_INCLUDE_DIRS ${CFITSIO_INCLUDE_DIR})
set(CFITSIO_LIBRARIES ${CFITSIO_LIBRARY})
endif(NOT CFITSIO_FOUND)
# $Id: FindLapack.cmake 13814 2009-08-20 11:55:06Z loose $
#
# Copyright (C) 2008-2009
# ASTRON (Netherlands Foundation for Research in Astronomy)
# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands, seg@astron.nl
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Try to find Lapack.
#
# This will define:
#
# LAPACK_FOUND - system has Lapack
# LAPACK_INCLUDE_DIR - undefined
# LAPACK_INCLUDE_DIRS -
# (identical to LAPACK_INCLUDE_DIR)
# LAPACK_LIBRARY - the Lapack library (cached)
# LAPACK_LIBRARIES - the Lapack libraries
# (identical to LAPACK_LIBRARY)
if(NOT LAPACK_FOUND)
find_library(LAPACK_LIBRARY lapack)
mark_as_advanced(LAPACK_LIBRARY)
include(FindPackageHandleStandardArgs)
set(custom_msg "Could NOT find Lapack in ${CMAKE_PREFIX_PATH}")
find_package_handle_standard_args(Lapack "${custom_msg}"
LAPACK_LIBRARY)
set(LAPACK_LIBRARIES ${LAPACK_LIBRARY})
endif(NOT LAPACK_FOUND)
# $Id: FindWcslib.cmake 13814 2009-08-20 11:55:06Z loose $
#
# Copyright (C) 2008-2009
# ASTRON (Netherlands Foundation for Research in Astronomy)
# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands, seg@astron.nl
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Try to find Wcslib.
#
# This will define:
#
# WCSLIB_FOUND - system has Wcslib
# WCSLIB_INCLUDE_DIR - the Wcslib include directory (cached)
# WCSLIB_INCLUDE_DIRS - the Wcslib include directories
# (identical to WCSLIB_INCLUDE_DIR)
# WCSLIB_LIBRARY - the Wcslib library (cached)
# WCSLIB_LIBRARIES - the Wcslib libraries
# (identical to WCSLIB_LIBRARY)
if(NOT WCSLIB_FOUND)
find_path(WCSLIB_INCLUDE_DIR wcslib/wcs.h)
find_library(WCSLIB_LIBRARY wcs)
mark_as_advanced(WCSLIB_INCLUDE_DIR WCSLIB_LIBRARY)
include(FindPackageHandleStandardArgs)
set(custom_msg "Could NOT find Wcslib in ${CMAKE_PREFIX_PATH}")
find_package_handle_standard_args(Wcslib "${custom_msg}"
WCSLIB_LIBRARY WCSLIB_INCLUDE_DIR)
set(WCSLIB_INCLUDE_DIRS ${WCSLIB_INCLUDE_DIR})
set(WCSLIB_LIBRARIES ${WCSLIB_LIBRARY})
endif(NOT WCSLIB_FOUND)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment