mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-28 17:10:03 +02:00
* slsSupportLib done, at receiver rooting out in implementation * removed from receiver and client * removed everywhere except gui, python and client(commands.yaml and Detector.h) * updated python * fixed autocomplete to print what the issue is if there is one with ToString when running the autocomplete script to generate fixed.json. updated readme.md in generator folder * formatting * removed enums for dacs * udpating autocomplete and generating commands * removed gotthard from docs and release notes * removed dac test * bug from removing g1 * fixed virtual test for xilinx, was minor. so in this PR * gui done * binary in merge fix * formatting and removing enums * updated fixed and dump.json * bash autocomplete * updated doc on command line generation * removing increments in dac enums for backward compatibility. Not required * removed ROI from rxParameters (only in g1), not needed to be backward compatible * removed the phase shift option from det server staruip
78 lines
1.8 KiB
CMake
Executable File
78 lines
1.8 KiB
CMake
Executable File
# SPDX-License-Identifier: LGPL-3.0-or-other
|
|
# Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
|
|
pybind11_add_module(_slsdet
|
|
src/main.cpp
|
|
src/enums.cpp
|
|
src/detector.cpp
|
|
src/network.cpp
|
|
src/pattern.cpp
|
|
src/scan.cpp
|
|
src/current.cpp
|
|
src/duration.cpp
|
|
src/DurationWrapper.cpp
|
|
src/pedestal.cpp
|
|
)
|
|
|
|
target_link_libraries(_slsdet PUBLIC
|
|
slsDetectorStatic
|
|
)
|
|
|
|
|
|
set_target_properties(_slsdet PROPERTIES
|
|
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
|
)
|
|
|
|
#Copy Python code
|
|
set( PYTHON_FILES
|
|
slsdet/__init__.py
|
|
slsdet/adcs.py
|
|
slsdet/dacs.py
|
|
slsdet/powers.py
|
|
slsdet/decorators.py
|
|
slsdet/detector_property.py
|
|
slsdet/detector.py
|
|
slsdet/defines.py
|
|
slsdet/eiger.py
|
|
slsdet/enums.py
|
|
slsdet/errors.py
|
|
slsdet/gaincaps.py
|
|
slsdet/pattern.py
|
|
slsdet/gotthard2.py
|
|
slsdet/moench.py
|
|
slsdet/proxy.py
|
|
slsdet/ctb.py
|
|
slsdet/jungfrau.py
|
|
slsdet/mythen3.py
|
|
slsdet/registers.py
|
|
slsdet/temperature.py
|
|
slsdet/lookup.py
|
|
slsdet/utils.py
|
|
)
|
|
|
|
foreach(FILE ${PYTHON_FILES})
|
|
configure_file( ${FILE}
|
|
${CMAKE_BINARY_DIR}/bin/${FILE} )
|
|
|
|
endforeach(FILE ${PYTHON_FILES})
|
|
|
|
configure_file( scripts/basic.py
|
|
${CMAKE_BINARY_DIR}/basic.py
|
|
)
|
|
configure_file( scripts/test_virtual.py
|
|
${CMAKE_BINARY_DIR}/test_virtual.py
|
|
)
|
|
|
|
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/../VERSION
|
|
${CMAKE_BINARY_DIR}/bin/slsdet/VERSION
|
|
)
|
|
|
|
if(SLS_INSTALL_PYTHONEXT)
|
|
install(TARGETS _slsdet
|
|
EXPORT "${TARGETS_EXPORT_NAME}"
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/python
|
|
)
|
|
|
|
install(FILES ${PYTHON_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/python/slsdet)
|
|
install(FILES ../VERSION DESTINATION ${CMAKE_INSTALL_PREFIX}/python/slsdet)
|
|
endif() |