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-frelon
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-frelon
Commits
769a56ec
Commit
769a56ec
authored
Jun 23, 2017
by
Laurent Claustre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Frelon now cmakezed !!
parent
820cec62
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
75 additions
and
93 deletions
+75
-93
CMakeLists.txt
CMakeLists.txt
+65
-0
python/__init__.py
python/__init__.py
+2
-18
test/CMakeLists.txt
test/CMakeLists.txt
+8
-4
test/Makefile
test/Makefile
+0
-71
No files found.
src/Makefile
→
CMakeLists.txt
View file @
769a56ec
############################################################################
# This file is part of LImA, a Library for Image Acquisition
#
# Copyright (C) : 2009-201
1
# Copyright (C) : 2009-201
7
# European Synchrotron Radiation Facility
# BP 220, Grenoble 38043
# FRANCE
...
...
@@ -19,43 +19,47 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
############################################################################
LIMA_DIR
:=
$(
shell
pwd
)
/../../..
LIMA_ESPIA_DIR
:=
$(LIMA_DIR)
/camera/common/espia
include
$(LIMA_DIR)/config.inc
include
$(LIMA_DIR)/control/control.inc
include
$(LIMA_ESPIA_DIR)/include/espia.inc
SET
(
frelon_srcs src/Frelon.cpp src/FrelonSerialLine.cpp
src/FrelonModel.cpp src/FrelonCamera.cpp
src/FrelonTimingCtrl.cpp src/FrelonInterface.cpp src/FrelonCorrection.cpp
)
frelon-objs
=
FrelonBase.o FrelonSerialLine.o FrelonModel.o FrelonCamera.o
\
FrelonTimingCtrl.o FrelonInterface.o FrelonCorrection.o
FILE
(
STRINGS
"VERSION"
frelon_vers
)
ADD_LIBRARY
(
limafrelon SHARED
${
frelon_srcs
}
)
SRCS
=
$
(
frelon-objs:.o
=
.cpp
)
TARGET_INCLUDE_DIRECTORIES
(
limafrelon PUBLIC
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/include"
)
TARGET_INCLUDE_DIRECTORIES
(
limafrelon PUBLIC
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/tools/src"
)
CPPFLAGS
=
-I
../include
-I
$(LIMA_ESPIA_DIR)
/include
$(CT_CPPFLAGS)
\
-I
$(ESPIA_DRV_INCL)
CXXFLAGS
=
$(CT_CXXFLAGS)
set
(
CMAKE_MODULE_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/../common/espia/cmake
${
CMAKE_MODULE_PATH
}
)
include
(
FindEspiaDrv
)
#set paths for espia driver and limaespialib and include files
TARGET_INCLUDE_DIRECTORIES
(
limafrelon PUBLIC
"
${
ESPIA_DRV_INCLUDE_DIR
}
"
)
TARGET_INCLUDE_DIRECTORIES
(
limafrelon PUBLIC
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../common/espia/include"
)
all
:
Frelon.o
LINK_DIRECTORIES
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../common/espia"
)
Frelon.o
:
$(frelon-objs)
$(LD)
-o
$@
-r
$+
TARGET_LINK_LIBRARIES
(
limafrelon limacore
)
TARGET_LINK_LIBRARIES
(
limafrelon
${
ESPIA_DRV_LIB
}
)
TARGET_LINK_LIBRARIES
(
limafrelon limaespia
)
FrelonBase.o
:
Frelon.cpp
$(CXX)
$(CPPFLAGS)
-c
$(CXXFLAGS)
-o
$@
$<
SET_TARGET_PROPERTIES
(
limafrelon PROPERTIES VERSION
${
frelon_vers
}
SOVERSION
"1"
)
clean
:
rm
-f
*
.o
*
.P
INSTALL
(
TARGETS limafrelon LIBRARY DESTINATION lib
)
%.o
:
%.cpp
$(COMPILE.cpp)
$(CPPFLAGS)
-MD
$(CXXFLAGS)
-o
$@
$<
@
cp
$*
.d
$*
.P
;
\
sed
-e
's/#.*//'
-e
's/^[^:]*: *//'
-e
's/ *\\$$//'
\
-e
'/^$$/ d'
-e
's/$$/ :/'
<
$*
.d
>>
$*
.P
;
\
rm
-f
$*
.d
IF
(
COMPILE_SIP
)
SET
(
NAME
"frelon"
)
SET
(
IMPORTS
"%Import limaespia.sip"
)
SET
(
SIP_INCLUDES
${
SIP_INCLUDES
}
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../common/espia/sip"
"
${
CMAKE_BINARY_DIR
}
/camera/common/espia/sip"
)
INCLUDE
(
CameraRunSIP
)
INSTALL
(
FILES python/__init__.py DESTINATION
"
${
PYTHON_SITE_PACKAGES_DIR
}
/Lima/Frelon"
)
INSTALL
(
FILES python/FrelonAcq.py DESTINATION
"
${
PYTHON_SITE_PACKAGES_DIR
}
/Lima/Frelon"
)
ENDIF
()
-include
$(SRCS:.cpp=.P)
.PHONY
:
check-syntax
check-syntax
:
$(CXX)
$(CPPFLAGS)
-Wextra
-fsyntax-only
$(CXXFLAGS)
$(CHK_SOURCES)
IF
(
COMPILE_TEST
)
ADD_SUBDIRECTORY
(
test/
)
ENDIF
()
python/__init__.py
View file @
769a56ec
...
...
@@ -19,24 +19,8 @@
# 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
=
'Espia'
has_dependent
=
False
cleanup_data
=
module_helper
.
load_prepare
(
mod_path
,
depends_on
,
has_dependent
)
from
Lima
import
Espia
from
limafrelon
import
Frelon
as
_F
cleanup_data
=
module_helper
.
load_dep_cleanup
(
cleanup_data
)
from
Lima.Frelon.limafrelon
import
*
globals
().
update
(
Frelon
.
__dict__
)
globals
().
update
(
_F
.
__dict__
)
from
Lima.Frelon.FrelonAcq
import
FrelonAcq
module_helper
.
load_cleanup
(
cleanup_data
)
del
mod_path
,
depends_on
,
has_dependent
,
cleanup_data
del
module_helper
Makefile
→
test/CMakeLists.txt
View file @
769a56ec
############################################################################
# This file is part of LImA, a Library for Image Acquisition
#
# Copyright (C) : 2009-201
1
# Copyright (C) : 2009-201
7
# European Synchrotron Radiation Facility
# BP 220, Grenoble 38043
# FRANCE
...
...
@@ -19,7 +19,11 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
############################################################################
src-dirs
=
src
test-dirs
=
test
include
../../global.inc
SET
(
test_src test_frelon
test_frelon_control
test_frelon_interface
test_frelon_spectroscopy
)
INCLUDE
(
TestCamera
)
test/Makefile
deleted
100644 → 0
View file @
820cec62
############################################################################
# This file is part of LImA, a Library for Image Acquisition
#
# Copyright (C) : 2009-2011
# 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/>.
############################################################################
LIMA_DIR
:=
$(
shell
pwd
)
/../../..
LIMA_ESPIA_DIR
:=
$(LIMA_DIR)
/camera/common/espia
include
$(LIMA_DIR)/config.inc
include
$(LIMA_DIR)/control/control.inc
include
$(LIMA_ESPIA_DIR)/include/espia.inc
SRCS
=
test_frelon.cpp test_frelon_interface.cpp test_frelon_spectroscopy.cpp
\
test_frelon_control.cpp
CPPFLAGS
=
-I
../include
-I
$(LIMA_ESPIA_DIR)
/include
$(CT_CPPFLAGS)
\
-I
$(ESPIA_DRV_INCL)
CXXFLAGS
=
$(CT_CXXFLAGS)
DEPLIBS
=
$(CT_DEPLIBS)
\
$(LIMA_DIR)
/build,limacore
\
$(LIMA_DIR)
/build,limaespia
\
$(LIMA_DIR)
/build,limafrelon
LDFLAGS
=
$(CT_LDFLAGS)
$(
call
lib-depflags,
$(DEPLIBS)
)
-L
$(ESPIA_DRV_LIB)
LDLIBS
=
$(CT_LDLIBS)
$(
call
lib-deplibs,
$(DEPLIBS)
)
-lespia
test-progs
=
test_frelon test_frelon_interface test_frelon_spectroscopy
\
test_frelon_control
old-progs
=
testfrelon testfreloninterface testfrelonspectroscopy
\
testfreloncontrol
all
:
$(test-progs)
test_frelon
:
test_frelon.o
$(CXX)
$(LDFLAGS)
-o
$@
$+
$(LDLIBS)
test_frelon_interface
:
test_frelon_interface.o
$(CXX)
$(LDFLAGS)
-o
$@
$+
$(LDLIBS)
test_frelon_spectroscopy
:
test_frelon_spectroscopy.o
$(CXX)
$(LDFLAGS)
-o
$@
$+
$(LDLIBS)
test_frelon_control
:
test_frelon_control.o
$(CXX)
$(LDFLAGS)
-o
$@
$+
$(LDLIBS)
clean
:
rm
-f
*
.o
*
.P
$
(
test-progs
)
$
(
old-progs
)
%.o
:
%.cpp
$(COMPILE.cpp)
$(CPPFLAGS)
-MD
$(CXXFLAGS)
-o
$@
$<
@
cp
$*
.d
$*
.P
;
\
sed
-e
's/#.*//'
-e
's/^[^:]*: *//'
-e
's/ *\\$$//'
\
-e
'/^$$/ d'
-e
's/$$/ :/'
<
$*
.d
>>
$*
.P
;
\
rm
-f
$*
.d
-include
$(SRCS:.cpp=.P)
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