Add missing Rizin headers in python bindings (#2943)

This commit is contained in:
bartoszek 2022-05-30 13:04:34 +02:00 committed by Anton Kochkov
parent 82f14b5667
commit 575952d22e

View File

@ -503,6 +503,10 @@ if(CUTTER_ENABLE_PYTHON)
target_link_libraries(Cutter PRIVATE Shiboken2::libshiboken PySide2::pyside2) target_link_libraries(Cutter PRIVATE Shiboken2::libshiboken PySide2::pyside2)
get_target_property(RAW_BINDINGS_INCLUDE_DIRS Cutter INCLUDE_DIRECTORIES) get_target_property(RAW_BINDINGS_INCLUDE_DIRS Cutter INCLUDE_DIRECTORIES)
if(NOT CUTTER_USE_BUNDLED_RIZIN)
get_target_property(RAW_RIZIN_INCLUDE_DIRS ${RIZIN_TARGET} INTERFACE_INCLUDE_DIRECTORIES)
list(APPEND RAW_BINDINGS_INCLUDE_DIRS "${RAW_RIZIN_INCLUDE_DIRS}")
endif()
set(BINDINGS_INCLUDE_DIRS "") set(BINDINGS_INCLUDE_DIRS "")
foreach(_dir ${RAW_BINDINGS_INCLUDE_DIRS}) foreach(_dir ${RAW_BINDINGS_INCLUDE_DIRS})
string(REGEX REPLACE "\\$<BUILD_INTERFACE:(.*)>" "\\1" _dir ${_dir}) string(REGEX REPLACE "\\$<BUILD_INTERFACE:(.*)>" "\\1" _dir ${_dir})