Commit 27391dcc authored by Aitor Henry's avatar Aitor Henry Committed by Sebastien Petitdemange

CMake for Xh camera

parent 655f9c29
# CMakeLists.txt for Xh camera
SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,--add-needed")
SET(xh_srcs src/XhCamera.cpp src/XhInterface.cpp
src/XhDetInfoCtrlObj.cpp src/XhSyncCtrlObj.cpp
src/XhClient.cpp)
FILE(STRINGS "VERSION" xh_vers)
ADD_LIBRARY(limaxh SHARED ${xh_srcs})
TARGET_INCLUDE_DIRECTORIES(limaxh PUBLIC "${CMAKE_SOUURCE_DIR}/camera/common/espia/include")
TARGET_INCLUDE_DIRECTORIES(limaxh PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
TARGET_LINK_LIBRARIES(limaxh limacore)
SET_TARGET_PROPERTIES(limaxh PROPERTIES VERSION ${xh_vers} SOVERSION "1")
INSTALL(TARGETS limaxh LIBRARY DESTINATION lib)
IF(COMPILE_SIP)
SET(NAME "xh")
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/limaxh.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(limaxh ${CMAKE_CURRENT_BINARY_DIR}/sip/limaxh.sip)
TARGET_INCLUDE_DIRECTORIES(python_module_limaxh PRIVATE
${PYTHON_INCLUDE_DIRS}
"${CMAKE_SOURCE_DIR}/sip"
"${CMAKE_SOURCE_DIR}/sip/core")
TARGET_LINK_LIBRARIES(python_module_limaxh limaxh)
INSTALL(FILES python/__init__.py DESTINATION "${PYTHON_SITE_PACKAGES_DIR}/Lima/Xh")
ENDIF()
......@@ -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.Xh.limaxh import Xh as _B
from limaxh import Xh as _B
globals().update(_B.__dict__)
module_helper.load_cleanup(cleanup_data)
del mod_path, depends_on, has_dependent, cleanup_data
del module_helper
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