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
f186d7e5
Commit
f186d7e5
authored
May 24, 2017
by
Aitor Henry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cmake ok
parent
15fb34b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
17 deletions
+63
-17
CMakeLists.txt
CMakeLists.txt
+62
-0
python/__init__.py
python/__init__.py
+1
-17
No files found.
CMakeLists.txt
0 → 100644
View file @
f186d7e5
# CMakeLists.txt for Andor3 camera
SET
(
CMAKE_SHARED_LINKER_FLAGS
"-Wl,--add-needed"
)
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
}
)
TARGET_INCLUDE_DIRECTORIES
(
limaandor3 PUBLIC
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/include"
)
TARGET_INCLUDE_DIRECTORIES
(
limaandor3 PUBLIC
"
${
COMMON_PATH
}
/include"
)
FIND_LIBRARY
(
ANDOR3_LIB_ATCORE atcore
)
FIND_LIBRARY
(
ANDOR3_LIB_ATUTILITY atutility
)
#FIND_LIBRARY(ANDOR3_LIB_ATCORE atcore ${COMMON_PATH}/lib)
#FIND_LIBRARY(ANDOR3_LIB_ATUTILITY atutility ${COMMON_PATH}/lib)
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"
)
INSTALL
(
TARGETS limaandor3 LIBRARY DESTINATION lib
)
IF
(
COMPILE_SIP
)
SET
(
NAME
"andor3"
)
SET
(
INCLUDES
)
FILE
(
GLOB sipfiles RELATIVE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/sip"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/sip/*.sip"
)
FOREACH
(
sipfile
${
sipfiles
}
)
SET
(
INCLUDES
"
${
INCLUDES
}
%Include
${
sipfile
}
"
)
ENDFOREACH
()
CONFIGURE_FILE
(
${
CMAKE_SOURCE_DIR
}
/sip/limamodules.sip.in sip/limaandor3.sip
)
SET
(
SIP_CONCAT_PARTS 1
)
SET
(
SIP_INCLUDES
${
SIP_INCLUDES
}
"
${
CMAKE_SOURCE_DIR
}
/third-party/Processlib/sip"
"
${
CMAKE_BINARY_DIR
}
/sip/core"
"
${
CMAKE_SOURCE_DIR
}
/third-party/Processlib/tasks/sip"
"
${
CMAKE_SOURCE_DIR
}
/common/sip"
"
${
CMAKE_SOURCE_DIR
}
/hardware/sip"
"
${
CMAKE_SOURCE_DIR
}
/control/sip"
"
${
CMAKE_SOURCE_DIR
}
/control/software_operation/sip"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/sip"
)
set
(
SIP_DISABLE_FEATURES WITH_CONFIG
)
set
(
SIP_CHECK_EXC ON
)
ADD_SIP_PYTHON_MODULE
(
limaandor3
${
CMAKE_CURRENT_BINARY_DIR
}
/sip/limaandor3.sip
)
TARGET_INCLUDE_DIRECTORIES
(
python_module_limaandor3 PRIVATE
${
PYTHON_INCLUDE_DIRS
}
"
${
CMAKE_SOURCE_DIR
}
/sip"
"
${
CMAKE_SOURCE_DIR
}
/sip/core"
)
TARGET_LINK_LIBRARIES
(
python_module_limaandor3 limaandor3
)
INSTALL
(
FILES python/__init__.py DESTINATION
"
${
PYTHON_SITE_PACKAGES_DIR
}
/Lima/Andor3"
)
ENDIF
()
python/__init__.py
View file @
f186d7e5
...
...
@@ -19,22 +19,6 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
############################################################################
from
Lima
import
module_helper
mod_path
=
__path__
depends_on
=
'Core'
has_dependent
=
False
cleanup_data
=
module_helper
.
load_prepare
(
mod_path
,
depends_on
,
has_dependent
)
from
Lima
import
Core
cleanup_data
=
module_helper
.
load_dep_cleanup
(
cleanup_data
)
from
Lima.Andor3.limaandor3
import
Andor3
as
_A
from
limaandor3
import
Andor3
as
_A
globals
().
update
(
_A
.
__dict__
)
module_helper
.
load_cleanup
(
cleanup_data
)
del
mod_path
,
depends_on
,
has_dependent
,
cleanup_data
del
module_helper
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