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
34b0ae5d
Commit
34b0ae5d
authored
Dec 21, 2018
by
Samuel Debionne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename CAMERA_ENABLE_PYTHON
parent
7263684c
Pipeline
#7058
passed with stages
in 4 minutes and 50 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
CMakeLists.txt
CMakeLists.txt
+6
-4
conda/camera/build.sh
conda/camera/build.sh
+1
-1
No files found.
CMakeLists.txt
View file @
34b0ae5d
...
...
@@ -62,9 +62,11 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${LIMA_CMAKE_INCLUDE_DIR
include
(
project_version
)
# Enable python binding code compilation using sip generator
option
(
CAMERA_ENABLE_PYTHON
"compile python binding code?"
LIMA_ENABLE_PYTHON
)
if
(
CAMERA_MASTER_PROJECT
)
option
(
LIMA_ENABLE_PYTHON
"compile python binding code?"
OFF
)
endif
()
if
(
CAMER
A_ENABLE_PYTHON
)
if
(
LIM
A_ENABLE_PYTHON
)
# Find python interpreter and libs
find_package
(
PythonInterp
)
find_package
(
PythonLibs
)
...
...
@@ -131,7 +133,7 @@ if(WIN32)
endif
()
# Binding code for python
if
(
CAMER
A_ENABLE_PYTHON
)
if
(
LIM
A_ENABLE_PYTHON
)
include
(
LimaTools
)
set
(
IMPORTS
"limaespia.sip"
)
limatools_run_sip_for_camera
(
frelon
)
...
...
@@ -171,7 +173,7 @@ install(
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
)
if
(
CAMER
A_ENABLE_PYTHON
)
if
(
LIM
A_ENABLE_PYTHON
)
install
(
DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/python/
DESTINATION
"
${
PYTHON_SITE_PACKAGES_DIR
}
/Lima/Frelon"
...
...
conda/camera/build.sh
View file @
34b0ae5d
#!/bin/bash
cmake
-Bbuild
-H
.
-D
CAMER
A_ENABLE_PYTHON
=
1
-DCAMERA_ENABLE_TESTS
=
1
-DCMAKE_INSTALL_PREFIX
=
$PREFIX
-DPYTHON_SITE_PACKAGES_DIR
=
$SP_DIR
-DCMAKE_FIND_ROOT_PATH
=
$PREFIX
cmake
-Bbuild
-H
.
-D
LIM
A_ENABLE_PYTHON
=
1
-DCAMERA_ENABLE_TESTS
=
1
-DCMAKE_INSTALL_PREFIX
=
$PREFIX
-DPYTHON_SITE_PACKAGES_DIR
=
$SP_DIR
-DCMAKE_FIND_ROOT_PATH
=
$PREFIX
cmake
--build
build
--target
install
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