mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-20 02:40:03 +02:00

* WIP * WIP * WIP * cleaned up multi * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * split up python module * WIP * WIP * WIP * WIP * WIP * ok * fixed bugs from rebase * WIP * fixed broken test * WIP * fixed python * WIP * sphinx help * including new commands * docs * WIP * WIP * more tests * added missing public header * WIP
49 lines
930 B
CMake
Executable File
49 lines
930 B
CMake
Executable File
|
|
pybind11_add_module(_sls_detector
|
|
src/main.cpp
|
|
src/enums.cpp
|
|
src/experimental.cpp
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(_sls_detector PUBLIC
|
|
slsDetectorShared
|
|
slsReceiverShared
|
|
slsSupportLib
|
|
zmq )
|
|
|
|
|
|
|
|
set_target_properties(_sls_detector PROPERTIES
|
|
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
|
)
|
|
|
|
#Copy Python code
|
|
set( PYTHON_FILES
|
|
__init__.py
|
|
adcs.py
|
|
dacs.py
|
|
decorators.py
|
|
detector_property.py
|
|
detector.py
|
|
eiger.py
|
|
errors.py
|
|
experimental.py
|
|
jungfrau_ctb.py
|
|
jungfrau.py
|
|
registers.py
|
|
utils.py
|
|
|
|
)
|
|
|
|
foreach(FILE ${PYTHON_FILES})
|
|
configure_file( sls_detector/${FILE}
|
|
${CMAKE_BINARY_DIR}/bin/sls_detector/${FILE} )
|
|
|
|
endforeach(FILE ${PYTHON_FILES})
|
|
|
|
|
|
configure_file( scripts/basic.py
|
|
${CMAKE_BINARY_DIR}/basic.py
|
|
) |