pip_python-dateutilΒΆ

hunter_add_package(pip_python-dateutil)
find_package(pip_python-dateutil CONFIG REQUIRED)

set(test_command "import dateutil")

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

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