Commit d39db95e authored by Samuel Debionne's avatar Samuel Debionne

Rename CAMERA_ENABLE_PYTHON

parent 62d5366b
...@@ -62,9 +62,11 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${LIMA_CMAKE_INCLUDE_DIR ...@@ -62,9 +62,11 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${LIMA_CMAKE_INCLUDE_DIR
include(project_version) include(project_version)
# Enable python binding code compilation using sip generator # 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 (CAMERA_ENABLE_PYTHON) if (LIMA_ENABLE_PYTHON)
# Find python interpreter and libs # Find python interpreter and libs
find_package(PythonInterp) find_package(PythonInterp)
find_package(PythonLibs) find_package(PythonLibs)
...@@ -137,7 +139,7 @@ if(WIN32) ...@@ -137,7 +139,7 @@ if(WIN32)
endif() endif()
# Binding code for python # Binding code for python
if(CAMERA_ENABLE_PYTHON) if(LIMA_ENABLE_PYTHON)
include(LimaTools) include(LimaTools)
limatools_run_sip_for_camera(andor) limatools_run_sip_for_camera(andor)
endif() endif()
...@@ -176,7 +178,7 @@ install( ...@@ -176,7 +178,7 @@ install(
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
) )
if(CAMERA_ENABLE_PYTHON) if(LIMA_ENABLE_PYTHON)
install( install(
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/python/ DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/python/
DESTINATION "${PYTHON_SITE_PACKAGES_DIR}/Lima/Andor" DESTINATION "${PYTHON_SITE_PACKAGES_DIR}/Lima/Andor"
......
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