Commit 24d07dc1 authored by Aitor Henry's avatar Aitor Henry

Put commands in lower case, new header.

parent acac0b14
############################################################################
###########################################################################
# This file is part of LImA, a Library for Image Acquisition
#
# Copyright (C) : 2009-2017
# European Synchrotron Radiation Facility
# BP 220, Grenoble 38043
# FRANCE
#
# 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/>.
# Copyright (C) : 2009-2017
# European Synchrotron Radiation Facility
# CS40220 38043 Grenoble Cedex 9
# 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/>.
############################################################################
# CMakeLists.txt for Andor3 camera
SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,--add-needed")
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--add-needed")
SET(andor3_srcs src/Andor3Camera.cpp src/Andor3Interface.cpp
set(andor3_srcs src/Andor3Camera.cpp src/Andor3Interface.cpp
src/Andor3DetInfoCtrlObj.cpp src/Andor3SyncCtrlObj.cpp
src/Andor3BinCtrlObj.cpp src/Andor3ReconstructionCtrlObj.cpp
src/Andor3RoiCtrlObj.cpp)
FILE(STRINGS "VERSION" andor3_vers)
ADD_LIBRARY(limaandor3 SHARED ${andor3_srcs})
file(STRINGS "VERSION" andor3_vers)
add_library(limaandor3 SHARED ${andor3_srcs})
TARGET_INCLUDE_DIRECTORIES(limaandor3 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
TARGET_INCLUDE_DIRECTORIES(limaandor3 PUBLIC "${COMMON_PATH}/include")
target_include_directories(limaandor3 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
target_include_directories(limaandor3 PUBLIC "/usr/local/include")
FIND_LIBRARY(ANDOR3_LIB_ATCORE atcore)
FIND_LIBRARY(ANDOR3_LIB_ATUTILITY atutility)
IF (("${ANDOR3_LIB_ATCORE}" STREQUAL "ANDOR3_LIB_ATCORE-NOTFOUND"))
MESSAGE(FATAL_ERROR "andor3 : libatcore not found, you can search it in cmake-gui or try to install it if it isn't here.")
ENDIF()
IF (("${ANDOR3_LIB_ATUTILITY}" STREQUAL "ANDOR3_LIB_ATUTILITY-NOTFOUND"))
MESSAGE(FATAL_ERROR "andor3 : libatutility not found, you can search it in cmake-gui or try to install it if it isn't here.")
ENDIF()
TARGET_LINK_LIBRARIES(limaandor3 limacore)
TARGET_LINK_LIBRARIES(limaandor3 ${ANDOR3_LIB_ATCORE})
TARGET_LINK_LIBRARIES(limaandor3 ${ANDOR3_LIB_ATUTILITY})
find_library(ANDOR3_LIB_ATCORE atcore)
find_library(ANDOR3_LIB_ATUTILITY atutility)
if (("${ANDOR3_LIB_ATCORE}" STREQUAL "ANDOR3_LIB_ATCORE-NOTFOUND"))
message(FATAL_ERROR "andor3 : libatcore not found, you can search it in cmake-gui or try to install it if it isn't here.")
endif()
if (("${ANDOR3_LIB_ATUTILITY}" STREQUAL "ANDOR3_LIB_ATUTILITY-NOTFOUND"))
message(FATAL_ERROR "andor3 : libatutility not found, you can search it in cmake-gui or try to install it if it isn't here.")
endif()
target_link_libraries(limaandor3 limacore)
target_link_libraries(limaandor3 ${ANDOR3_LIB_ATCORE})
target_link_libraries(limaandor3 ${ANDOR3_LIB_ATUTILITY})
SET_TARGET_PROPERTIES(limaandor3 PROPERTIES VERSION ${andor3_vers} SOVERSION "1")
set_target_properties(limaandor3 PROPERTIES VERSION ${andor3_vers} SOVERSION "1")
INSTALL(TARGETS limaandor3 LIBRARY DESTINATION lib)
install(TARGETS limaandor3 LIBRARY DESTINATION lib)
IF(COMPILE_SIP)
SET(NAME "andor3")
if(COMPILE_SIP)
set(NAME "andor3")
include(CameraRunSIP)
INSTALL(FILES python/__init__.py DESTINATION "${PYTHON_SITE_PACKAGES_DIR}/Lima/Andor3")
ENDIF()
install(FILES python/__init__.py DESTINATION "${PYTHON_SITE_PACKAGES_DIR}/Lima/Andor3")
endif()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment