Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
Lima-camera-andor3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LimaGroup
Lima-camera-andor3
Commits
24d07dc1
Commit
24d07dc1
authored
Jun 27, 2017
by
Aitor Henry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put commands in lower case, new header.
parent
acac0b14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
42 deletions
+43
-42
CMakeLists.txt
CMakeLists.txt
+43
-42
No files found.
CMakeLists.txt
View file @
24d07dc1
###########################################################################
#
###########################################################################
# 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
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment