<commit_before>#project(PyQiMessaging)

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../)
include("qibuild/swig/python")

# Compile swig compatibility layer
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/src")
qi_swig_wrap_python(qimessagingswig src/qimessagingswig.i SRC
                    src/qipython.hpp
                    src/qipython.cpp
                    src/qipython_call.hpp
                    src/qipython_call.cpp
                    src/qipython_convert.hpp
                    src/qipython_convert.cpp
                    src/sd_testwrap.hpp
                    src/sd_testwrap.cpp
                    src/converter_testwrap.cpp
                    src/converter_testwrap.hpp
                    src/pyobjectconverter.hpp
                    src/pyobjectconverter.cpp
                    src/pythonscopedref.cpp
                    src/pythonscopedref.hpp
                    src/qipython_signal.cpp
                    src/qipython_signal.hpp
                    DEPENDS QI QIMESSAGING)

# fixme: compute the correct destination instead
install(DIRECTORY
  ${CMAKE_CURRENT_SOURCE_DIR}/qimessaging
  COMPONENT python
  DESTINATION /lib
)

# Add automatic testing for Python bindings
add_subdirectory(test)<commit_msg>python: fixes borken install rules!<commit_after>#project(PyQiMessaging)

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../)
include("qibuild/swig/python")

# Compile swig compatibility layer
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/src")
qi_swig_wrap_python(qimessagingswig src/qimessagingswig.i SRC
                    src/qipython.hpp
                    src/qipython.cpp
                    src/qipython_call.hpp
                    src/qipython_call.cpp
                    src/qipython_convert.hpp
                    src/qipython_convert.cpp
                    src/sd_testwrap.hpp
                    src/sd_testwrap.cpp
                    src/converter_testwrap.cpp
                    src/converter_testwrap.hpp
                    src/pyobjectconverter.hpp
                    src/pyobjectconverter.cpp
                    src/pythonscopedref.cpp
                    src/pythonscopedref.hpp
                    src/qipython_signal.cpp
                    src/qipython_signal.hpp
                    DEPENDS QI QIMESSAGING)

# fixme: compute the correct destination instead
install(DIRECTORY
  ${CMAKE_CURRENT_SOURCE_DIR}/qimessaging
  COMPONENT python
  DESTINATION lib
)

# Add automatic testing for Python bindings
add_subdirectory(test)
{'fraction_non_alphanumeric': 0.0627748900439824, 'fraction_numerical': 0.0, 'mean_word_length': 1.7924107142857142, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6775980', 'n_tokens_mistral': 771, 'n_tokens_neox': 726, 'n_words': 103}