pip_astroidΒΆ

hunter_add_package(pip_astroid)
find_package(pip_astroid CONFIG REQUIRED)

set(test_command "import astroid")

execute_process(
    COMMAND
    ${Python_EXECUTABLE} -c ${test_command}
    RESULT_VARIABLE
    result
)

if(NOT result EQUAL "0")
  message(FATAL_ERROR "Failed")
endif()