mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 19:30:03 +02:00
63 lines
1.1 KiB
CMake
Executable File
63 lines
1.1 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
|
|
)
|
|
|
|
target_link_libraries(_slsdet PUBLIC
|
|
slsDetectorStatic
|
|
)
|
|
|
|
|
|
|
|
set_target_properties(_slsdet 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
|
|
defines.py
|
|
eiger.py
|
|
enums.py
|
|
errors.py
|
|
gotthard.py
|
|
pattern.py
|
|
gotthard2.py
|
|
moench.py
|
|
proxy.py
|
|
ctb.py
|
|
jungfrau.py
|
|
mythen3.py
|
|
registers.py
|
|
temperature.py
|
|
lookup.py
|
|
utils.py
|
|
|
|
)
|
|
|
|
foreach(FILE ${PYTHON_FILES})
|
|
configure_file( slsdet/${FILE}
|
|
${CMAKE_BINARY_DIR}/bin/slsdet/${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
|
|
) |