Commit 03044b4d authored by Aitor Henry's avatar Aitor Henry Committed by Sebastien Petitdemange
Browse files

Put commands in lower case, new header.

parent ba055981
############################################################################
###########################################################################
# 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 Pilatus camera
SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,--add-needed")
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--add-needed")
SET(pilatus_srcs src/PilatusCamera.cpp src/PilatusInterface.cpp
set(pilatus_srcs src/PilatusCamera.cpp src/PilatusInterface.cpp
src/PilatusSaving.cpp)
FILE(STRINGS "VERSION" pilatus_vers)
ADD_LIBRARY(limapilatus SHARED ${pilatus_srcs})
file(STRINGS "VERSION" pilatus_vers)
add_library(limapilatus SHARED ${pilatus_srcs})
#INCLUDES
TARGET_INCLUDE_DIRECTORIES(limapilatus PUBLIC "${CMAKE_SOURCE_DIR}/third-party/CBFLib/include")
TARGET_INCLUDE_DIRECTORIES(limapilatus PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
target_include_directories(limapilatus PUBLIC "${CMAKE_SOURCE_DIR}/third-party/CBFLib/include")
target_include_directories(limapilatus PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
#LIBRARIES
FIND_LIBRARY(PILATUS_LIB cbf)
IF("${PILATUS_LIB}" STREQUAL "PILATUS_LIB-NOTFOUND")
MESSAGE(FATAL_ERROR "pilatus : libcbf not found, you can search it in cmake-gui or try to install it if it isn't here.")
ENDIF()
find_library(PILATUS_LIB cbf)
if("${PILATUS_LIB}" STREQUAL "PILATUS_LIB-NOTFOUND")
message(FATAL_ERROR "pilatus : libcbf not found, you can search it in cmake-gui or try to install it if it isn't here.")
endif()
TARGET_LINK_LIBRARIES(limapilatus limacore)
TARGET_LINK_LIBRARIES(limapilatus ${PILATUS_LIB})
target_link_libraries(limapilatus limacore)
target_link_libraries(limapilatus ${PILATUS_LIB})
SET_TARGET_PROPERTIES(limapilatus PROPERTIES VERSION ${pilatus_vers} SOVERSION "1")
set_target_properties(limapilatus PROPERTIES VERSION ${pilatus_vers} SOVERSION "1")
INSTALL(TARGETS limapilatus LIBRARY DESTINATION lib)
install(TARGETS limapilatus LIBRARY DESTINATION lib)
IF(COMPILE_SIP)
SET(NAME "pilatus")
if(COMPILE_SIP)
set(NAME "pilatus")
include(CameraRunSIP)
INSTALL(FILES python/__init__.py DESTINATION "${PYTHON_SITE_PACKAGES_DIR}/Lima/Pilatus")
ENDIF()
install(FILES python/__init__.py DESTINATION "${PYTHON_SITE_PACKAGES_DIR}/Lima/Pilatus")
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