Commit 3ab2d1f3 authored by Aitor Henry's avatar Aitor Henry

Put commands in lower case, new header.

parent 454f86d7
############################################################################
###########################################################################
# 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 Pointgrey camera
SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,--add-needed")
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--add-needed")
#SOURCEs
SET(pointgrey_srcs src/PointGreyCamera.cpp src/PointGreyInterface.cpp
set(pointgrey_srcs src/PointGreyCamera.cpp src/PointGreyInterface.cpp
src/PointGreyDetInfoCtrlObj.cpp src/PointGreySyncCtrlObj.cpp)
FILE(STRINGS "VERSION" pointgrey_vers)
ADD_LIBRARY(limapointgrey SHARED ${pointgrey_srcs})
file(STRINGS "VERSION" pointgrey_vers)
add_library(limapointgrey SHARED ${pointgrey_srcs})
#INCLUDEs
TARGET_INCLUDE_DIRECTORIES(limapointgrey PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
TARGET_INCLUDE_DIRECTORIES(limapointgrey PUBLIC "${COMMON_PATH}/../include/flycapture")
TARGET_INCLUDE_DIRECTORIES(limapointgrey PUBLIC "${COMMON_PATH}/../include/flycapture/C")
target_include_directories(limapointgrey PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
target_include_directories(limapointgrey PUBLIC "/usr/include/flycapture")
target_include_directories(limapointgrey PUBLIC "/usr/include/flycapture/C")
#LIBRARIES
FIND_LIBRARY(POINTGREY_LIB_FLYCAPTURE flycapture)
IF("${POINTGREY_LIB_FLYCAPTURE}" STREQUAL "POINTGREY_LIB_FLYCAPTURE-NOTFOUND")
MESSAGE(FATAL_ERROR "pointgrey : flycapture not found, you can search it in cmake-gui or try to install it if it isn't here.")
ENDIF()
find_library(POINTGREY_LIB_FLYCAPTURE flycapture)
if("${POINTGREY_LIB_FLYCAPTURE}" STREQUAL "POINTGREY_LIB_FLYCAPTURE-NOTFOUND")
message(FATAL_ERROR "pointgrey : flycapture not found, you can search it in cmake-gui or try to install it if it isn't here.")
endif()
TARGET_LINK_LIBRARIES(limapointgrey limacore)
TARGET_LINK_LIBRARIES(limapointgrey ${POINTGREY_LIB_FLYCAPTURE})
target_link_libraries(limapointgrey limacore)
target_link_libraries(limapointgrey ${POINTGREY_LIB_FLYCAPTURE})
SET_TARGET_PROPERTIES(limapointgrey PROPERTIES VERSION ${pointgrey_vers} SOVERSION "1")
set_target_properties(limapointgrey PROPERTIES VERSION ${pointgrey_vers} SOVERSION "1")
INSTALL(TARGETS limapointgrey LIBRARY DESTINATION lib)
install(TARGETS limapointgrey LIBRARY DESTINATION lib)
IF(COMPILE_SIP)
SET(NAME "pointgrey")
if(COMPILE_SIP)
set(NAME "pointgrey")
include(CameraRunSIP)
INSTALL(FILES python/__init__.py DESTINATION "${PYTHON_SITE_PACKAGES_DIR}/Lima/PointGrey")
ENDIF()
install(FILES python/__init__.py DESTINATION "${PYTHON_SITE_PACKAGES_DIR}/Lima/PointGrey")
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