mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-28 17:10:03 +02:00
39 lines
874 B
CMake
39 lines
874 B
CMake
add_subdirectory(pybind11)
|
|
pybind11_add_module(_sls_detector src/main.cpp)
|
|
|
|
target_link_libraries(_sls_detector PUBLIC
|
|
slsDetectorShared
|
|
slsReceiverShared
|
|
slsSupportLib )
|
|
|
|
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 ) |