Newer
Older
###########################################################################
# This file is part of LImA, a Library for Image Acquisition
#
# Copyright (C) : 2009-2017
# European Synchrotron Radiation Facility
# BP 220, Grenoble 38043
# FRANCE
#
# Contact: lima@esrf.fr
#
# This 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 3 of the License, or
# (at your option) any later version.
#
# This software 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, see <http://www.gnu.org/licenses/>.
############################################################################
#CAMERA WORKING ON BOTH LINUX AND WINDOWS
#ANDOR
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_ANDOR})
set(LIMACAMERA_ANDOR "$ENV{LIMACAMERA_ANDOR}" CACHE BOOL "compile andor?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_ANDOR OFF CACHE BOOL "compile andor?")
Laurent Claustre
committed
if(LIMACAMERA_ANDOR)
add_subdirectory(camera/andor)
Laurent Claustre
committed
endif(LIMACAMERA_ANDOR)
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_BASLER})
set(LIMACAMERA_BASLER "$ENV{LIMACAMERA_BASLER}" CACHE BOOL "compile basler?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_BASLER OFF CACHE BOOL "compile basler?")
Laurent Claustre
committed
if(LIMACAMERA_BASLER)
add_subdirectory(camera/basler)
Laurent Claustre
committed
endif(LIMACAMERA_BASLER)
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_PCO})
set(LIMACAMERA_PCO "$ENV{LIMACAMERA_PCO}" CACHE BOOL "compile pco?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_PCO OFF CACHE BOOL "compile pco?")
Laurent Claustre
committed
if(LIMACAMERA_PCO)
add_subdirectory(camera/pco)
Laurent Claustre
committed
endif(LIMACAMERA_PCO)
#SIMULATOR
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_SIMULATOR})
set(LIMACAMERA_SIMULATOR "$ENV{LIMACAMERA_SIMULATOR}" CACHE BOOL "compile simulator?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_SIMULATOR ON CACHE BOOL "compile simulator?")
Laurent Claustre
committed
if(LIMACAMERA_SIMULATOR)
add_subdirectory(camera/simulator)
Laurent Claustre
committed
endif(LIMACAMERA_SIMULATOR)
#ROPERSCIENTIFIC
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_ROPERSCIENTIFIC})
set(LIMACAMERA_ROPERSCIENTIFIC "$ENV{LIMACAMERA_ROPERSCIENTIFIC}" CACHE BOOL "compile roperscientific ?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_ROPERSCIENTIFIC OFF CACHE BOOL "compile roperscientific?")
Laurent Claustre
committed
if(LIMACAMERA_ROPERSCIENTIFIC)
add_subdirectory(camera/roperscientific)
Laurent Claustre
committed
endif(LIMACAMERA_ROPERSCIENTIFIC)
#CAMERA ONLY WORKING ON LINUX
if(UNIX)
#ANDOR3
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_ANDOR3})
set(LIMACAMERA_ANDOR3 "$ENV{LIMACAMERA_ANDOR3}" CACHE BOOL "compile andor3?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_ANDOR3 OFF CACHE BOOL "compile andor3?")
Laurent Claustre
committed
if(LIMACAMERA_ANDOR3)
add_subdirectory(camera/andor3)
Laurent Claustre
committed
endif(LIMACAMERA_ANDOR3)
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_AVIEX})
set(LIMACAMERA_AVIEX "$ENV{COMPILE_AVIEX}" CACHE BOOL "compile aviex?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_AVIEX OFF CACHE BOOL "compile aviex?")
Laurent Claustre
committed
if(LIMACAMERA_AVIEX)
add_subdirectory(camera/aviex)
Laurent Claustre
committed
endif(LIMACAMERA_AVIEX)
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_ADSC})
set(LIMACAMERA_ADSC "$ENV{LIMACAMERA_ADSC}" CACHE BOOL "compile adsc?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_ADSC OFF CACHE BOOL "compile adsc?")
Laurent Claustre
committed
if(LIMACAMERA_ADSC)
add_subdirectory(camera/adsc)
Laurent Claustre
committed
endif(LIMACAMERA_ADSC)
#DEXELA
if(DEFINED ENV{LIMACAMERA_DEXELA})
set(LIMACAMERA_DEXELA "$ENV{LIMACAMERA_DEXELA}" CACHE BOOL "compile dexela ?" FORCE)
else()
set(LIMACAMERA_DEXELA OFF CACHE BOOL "compile dexela ?")
endif()
if(LIMACAMERA_DEXELA)
add_subdirectory(camera/dexela)
endif(LIMACAMERA_DEXELA)
#EIGER
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_EIGER})
set(LIMACAMERA_EIGER "$ENV{LIMACAMERA_EIGER}" CACHE BOOL "compile eiger?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_EIGER OFF CACHE BOOL "compile eiger?")
Laurent Claustre
committed
if(LIMACAMERA_EIGER)
add_subdirectory(camera/eiger)
Laurent Claustre
committed
endif(LIMACAMERA_EIGER)
#FRELON
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_FRELON})
set(LIMACAMERA_FRELON "$ENV{LIMACAMERA_FRELON}" CACHE BOOL "compile frelon?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_FRELON OFF CACHE BOOL "compile frelon?")
Laurent Claustre
committed
if(LIMACAMERA_FRELON)
add_subdirectory(camera/frelon)
Laurent Claustre
committed
endif(LIMACAMERA_FRELON)
#FLI
if(DEFINED ENV{LIMACAMERA_FLI})
set(LIMACAMERA_FLI "$ENV{LIMACAMERA_FLI}" CACHE BOOL "compile Finger Lake Instrument camera?" FORCE)
else()
set(LIMACAMERA_FLI OFF CACHE BOOL "compile Finger Lake Instrument camera?")
endif()
if(LIMACAMERA_FLI)
add_subdirectory(camera/fli)
endif(LIMACAMERA_FLI)
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_HEXITEC})
set(LIMACAMERA_HEXITEC "$ENV{LIMACAMERA_HEXITEC}" CACHE BOOL "compile hexitec ?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_HEXITEC OFF CACHE BOOL "compile hexitec ?")
Laurent Claustre
committed
if(LIMACAMERA_HEXITEC)
add_subdirectory(camera/hexitec)
Laurent Claustre
committed
endif(LIMACAMERA_HEXITEC)
#IMXPAD
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_IMXPAD})
set(LIMACAMERA_IMXPAD "$ENV{LIMACAMERA_IMXPAD}" CACHE BOOL "compile imxpad?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_IMXPAD OFF CACHE BOOL "compile imxpad?")
Laurent Claustre
committed
if(LIMACAMERA_IMXPAD)
add_subdirectory(camera/imxpad)
Laurent Claustre
committed
endif(LIMACAMERA_IMXPAD)
Laurent Claustre
committed
#LAMBDA
if(DEFINED ENV{LIMACAMERA_LAMBDA})
set(LIMACAMERA_LAMBDA "$ENV{LIMACAMERA_LAMBDA}" CACHE BOOL "compile lambda?" FORCE)
else()
set(LIMACAMERA_LAMBDA OFF CACHE BOOL "compile lambda?")
endif()
if(LIMACAMERA_LAMBDA)
add_subdirectory(camera/lambda)
endif(LIMACAMERA_LAMBDA)
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_MARCCD})
set(LIMACAMERA_MARCCD "$ENV{LIMACAMERA_MARCCD}" CACHE BOOL "compile marccd?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_MARCCD OFF CACHE BOOL "compile marccd?")
Laurent Claustre
committed
if(LIMACAMERA_MARCCD)
add_subdirectory(camera/marccd)
Laurent Claustre
committed
endif(LIMACAMERA_MARCCD)
#MAXIPIX
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_MAXIPIX})
set(LIMACAMERA_MAXIPIX "$ENV{LIMACAMERA_MAXIPIX}" CACHE BOOL "compile maxipix?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_MAXIPIX OFF CACHE BOOL "compile maxipix?")
Laurent Claustre
committed
if(LIMACAMERA_MAXIPIX)
add_subdirectory(camera/maxipix)
Laurent Claustre
committed
endif(LIMACAMERA_MAXIPIX)
#MERLIN
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_MERLIN})
set(LIMACAMERA_MERLIN "$ENV{LIMACAMERA_MERLIN}" CACHE BOOL "compile merlin?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_MERLIN OFF CACHE BOOL "compile merlin?")
Laurent Claustre
committed
if(LIMACAMERA_MERLIN)
add_subdirectory(camera/merlin)
Laurent Claustre
committed
endif(LIMACAMERA_MERLIN)
#MYTHEN
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_MYTHEN})
set(LIMACAMERA_MYTHEN "$ENV{LIMACAMERA_MYTHEN}" CACHE BOOL "compile mythen ?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_MYTHEN OFF CACHE BOOL "compile mythen ?")
Laurent Claustre
committed
if(LIMACAMERA_MYTHEN)
add_subdirectory(camera/mythen)
Laurent Claustre
committed
endif(LIMACAMERA_MYTHEN)
#MYTHEN3
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_MYTHEN3})
set(LIMACAMERA_MYTHEN3 "$ENV{LIMACAMERA_MYTHEN3}" CACHE BOOL "compile mythen3 ?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_MYTHEN3 OFF CACHE BOOL "compile mythen3 ?")
Laurent Claustre
committed
if(LIMACAMERA_MYTHEN3)
add_subdirectory(camera/mythen3)
Laurent Claustre
committed
endif(LIMACAMERA_MYTHEN3)
#PILATUS
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_PILATUS})
set(LIMACAMERA_PILATUS "$ENV{LIMACAMERA_PILATUS}" CACHE BOOL "compile pilatus?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_PILATUS OFF CACHE BOOL "compile pilatus?")
Laurent Claustre
committed
if(LIMACAMERA_PILATUS)
add_subdirectory(camera/pilatus)
Laurent Claustre
committed
endif(LIMACAMERA_PILATUS)
#PIXIRAD
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_PIXIRAD})
set(LIMACAMERA_PIXIRAD "$ENV{LIMACAMERA_PIXIRAD}" CACHE BOOL "compile pixirad?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_PIXIRAD OFF CACHE BOOL "compile pixirad?")
Laurent Claustre
committed
if(LIMACAMERA_PIXIRAD)
add_subdirectory(camera/pixirad)
Laurent Claustre
committed
endif(LIMACAMERA_PIXIRAD)
#POINTGREY
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_POINTGREY})
set(LIMACAMERA_POINTGREY "$ENV{LIMACAMERA_POINTGREY}" CACHE BOOL "compile pointgrey?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_POINTGREY OFF CACHE BOOL "compile pointgrey?")
Laurent Claustre
committed
if(LIMACAMERA_POINTGREY)
add_subdirectory(camera/pointgrey)
Laurent Claustre
committed
endif(LIMACAMERA_POINTGREY)
#PROSILICA
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_PROSILICA})
set(LIMACAMERA_PROSILICA "$ENV{LIMACAMERA_PROSILICA}" CACHE BOOL "compile prosilica?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_PROSILICA OFF CACHE BOOL "compile prosilica?")
Laurent Claustre
committed
if(LIMACAMERA_PROSILICA)
add_subdirectory(camera/prosilica)
Laurent Claustre
committed
endif(LIMACAMERA_PROSILICA)
#RAYONIX HS
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_RAYONIXHS})
set(LIMACAMERA_RAYONIXHS "$ENV{LIMACAMERA_RAYONIXHS}" CACHE BOOL "compile rayonix hs?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_RAYONIXHS OFF CACHE BOOL "compile rayonix hs?")
Laurent Claustre
committed
if(LIMACAMERA_RAYONIXHS)
add_subdirectory(camera/rayonixhs)
Laurent Claustre
committed
endif(LIMACAMERA_RAYONIXHS)
#SLSDETECTOR
if(DEFINED ENV{LIMACAMERA_SLSDETECTOR})
set(LIMACAMERA_SLSDETECTOR "$ENV{LIMACAMERA_SLSDETECTOR}" CACHE BOOL "compile slsdetector ?" FORCE)
else()
set(LIMACAMERA_SLSDETECTOR OFF CACHE BOOL "compile slsdetector ?")
endif()
if(LIMACAMERA_SLSDETECTOR)
add_subdirectory(camera/slsdetector)
endif(LIMACAMERA_SLSDETECTOR)
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_UEYE})
set(LIMACAMERA_UEYE "$ENV{LIMACAMERA_UEYE}" CACHE BOOL "compile ueye ?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_UEYE OFF CACHE BOOL "compile ueye ?")
Laurent Claustre
committed
if(LIMACAMERA_UEYE)
add_subdirectory(camera/ueye)
Laurent Claustre
committed
endif(LIMACAMERA_UEYE)
#ULTRA
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_ULTRA})
set(LIMACAMERA_ULTRA "$ENV{LIMACAMERA_ULTRA}" CACHE BOOL "compile ultra ?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_ULTRA OFF CACHE BOOL "compile ultra ?")
Laurent Claustre
committed
if(LIMACAMERA_ULTRA)
add_subdirectory(camera/ultra)
Laurent Claustre
committed
endif(LIMACAMERA_ULTRA)
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_V4L2})
set(LIMACAMERA_V4L2 "$ENV{LIMACAMERA_V4L2}" CACHE BOOL "compile v4l2 ?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_V4L2 OFF CACHE BOOL "compile v4l2 ?")
Laurent Claustre
committed
if(LIMACAMERA_V4L2)
add_subdirectory(camera/v4l2)
Laurent Claustre
committed
endif(LIMACAMERA_V4L2)
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_XPAD})
set(LIMACAMERA_XPAD "$ENV{LIMACAMERA_XPAD}" CACHE BOOL "compile Xpad ?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_XPAD OFF CACHE BOOL "compile Xpad ?")
Laurent Claustre
committed
if(LIMACAMERA_XPAD)
add_subdirectory(camera/xpad)
Laurent Claustre
committed
endif(LIMACAMERA_XPAD)
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_XH})
set(LIMACAMERA_XH "$ENV{LIMACAMERA_XH}" CACHE BOOL "compile xh ?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_XH OFF CACHE BOOL "compile xh ?")
Laurent Claustre
committed
if(LIMACAMERA_XH)
add_subdirectory(camera/xh)
Laurent Claustre
committed
endif(LIMACAMERA_XH)
#XSPRESS3
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_XSPRESS3})
set(LIMACAMERA_XSPRESS3 "$ENV{LIMACAMERA_XSPRESS3}" CACHE BOOL "compile xspress3 ?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_XSPRESS3 OFF CACHE BOOL "compile xspress3 ?")
Laurent Claustre
committed
if(LIMACAMERA_XSPRESS3)
add_subdirectory(camera/xspress3)
Laurent Claustre
committed
endif(LIMACAMERA_XSPRESS3)
#ZWO
if(DEFINED ENV{LIMACAMERA_ZWO})
set(LIMACAMERA_ZWO "$ENV{LIMACAMERA_ZWO}" CACHE BOOL "compile zwo ?" FORCE)
else()
set(LIMACAMERA_ZWO OFF CACHE BOOL "compile zwo ?")
endif()
if(LIMACAMERA_ZWO)
add_subdirectory(camera/zwo)
endif(LIMACAMERA_ZWO)
Samuel Debionne
committed
if(LIMACAMERA_FRELON OR LIMACAMERA_MAXIPIX)
add_subdirectory(camera/common/espia)
endif(LIMACAMERA_FRELON OR LIMACAMERA_MAXIPIX)
endif()
#CAMERA ONLY WORKING ON WINDOWS
if(WIN32)
#HAMAMATSU
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_HAMAMATSU})
set(LIMACAMERA_HAMAMATSU "$ENV{LIMACAMERA_HAMAMATSU}" CACHE BOOL "compile hamamatsu ?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_HAMAMATSU OFF CACHE BOOL "compile hamamatsu ?")
Laurent Claustre
committed
if(LIMACAMERA_HAMAMATSU)
add_subdirectory(camera/hamamatsu)
Laurent Claustre
committed
endif(LIMACAMERA_HAMAMATSU)
#PERKIN ELMER
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_PERKINELMER})
set(LIMACAMERA_PERKINELMER "$ENV{LIMACAMERA_PERKINELMER}" CACHE BOOL "compile perkin elmer ?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_PERKINELMER OFF CACHE BOOL "compile perkin elmer ?")
endif()
#PERKIN ELMER
Laurent Claustre
committed
if(LIMACAMERA_PERKINELMER)
add_subdirectory(camera/perkinelmer)
Laurent Claustre
committed
endif(LIMACAMERA_PERKINELMER)
#PHOTONICSCIENCE
Laurent Claustre
committed
if(DEFINED ENV{LIMACAMERA_PHOTONICSCIENCE})
set(LIMACAMERA_PHOTONICSCIENCE "$ENV{LIMACAMERA_PHOTONICSCIENCE}" CACHE BOOL "compile photonicscience ?" FORCE)
Laurent Claustre
committed
set(LIMACAMERA_PHOTONICSCIENCE OFF CACHE BOOL "compile photonicscience ?")
Laurent Claustre
committed
if(LIMACAMERA_PHOTONICSCIENCE)
add_subdirectory(camera/photonicscience)
Laurent Claustre
committed
endif(LIMACAMERA_PHOTONICSCIENCE)